Skip to content

Commit f9a5143

Browse files
committed
impr: config changes
1 parent 376d1b2 commit f9a5143

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
FROM tiangolo/nginx-rtmp
22

3+
COPY streamer.conf /etc/nginx/nginx.conf
4+
COPY stunnel.conf /etc/stunnel/stunnel.conf
5+
36
RUN apt-get update && \
47
apt-get install -y stunnel4 ca-certificates && \
58
mkdir -p /etc/stunnel && \
69
chmod 600 /etc/stunnel/stunnel.conf
710

8-
COPY streamer.conf /etc/nginx/nginx.conf
9-
COPY stunnel.conf /etc/stunnel/stunnel.conf
10-
1111
CMD sh -c "stunnel /etc/stunnel/stunnel.conf && nginx -g 'daemon off;'"

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
nginx:
55
build: .
66
image: tiangolo/nginx-rtmp
7+
restart: unless-stopped
78
ports:
89
- "1935:1935"
910
volumes:

0 commit comments

Comments
 (0)