fix(nginx): envs not passed into nginx

This commit is contained in:
2026-05-18 21:14:56 +01:00
parent c70cd3f939
commit 3b188a3497
2 changed files with 12 additions and 1 deletions

View File

@@ -1,5 +1,11 @@
FROM tiangolo/nginx-rtmp
COPY nginx.conf /etc/nginx/nginx.conf
RUN apt-get update && apt-get install -y gettext-base && rm -rf /var/lib/apt/lists/*
COPY nginx.conf /etc/nginx/nginx.conf.template
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 1935
ENTRYPOINT ["/entrypoint.sh"]

View File

@@ -21,6 +21,11 @@ rtmp {
hls_fragment_naming system;
hls_fragment 3;
hls_playlist_length 28800;
on_publish ${WEB_SERVER_URL}/api/v1/stream/start;
on_publish_done ${WEB_SERVER_URL}/api/v1/stream/stop;
on_update ${WEB_SERVER_URL}/api/v1/stream/heartbeat;
notify_update_timeout 30s;
}
}
}