fix(nginx): envs not passed into nginx
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user