Skip to content

eggspot/nginx-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nginx-docker

eggspot/nginx:1.19.9-rtmp: pre-install Nginx RTMP module + Stunnel4 (restream to RTMPs) + NodeJs

eggspot/nginx:1.19.9-rtmp-arm: ARM supported, pre-install Nginx RTMP module + Stunnel4 (restream to RTMPs) + NodeJs

  • OBS connect to rtmp://localhost/live
FROM eggspot/nginx:1.19.9-rtmp

# nginx.conf  file
COPY nginx.conf /etc/nginx/nginx.conf

Use Stunnel with ENTRYPOINT in docker

Example

#!/bin/sh
  
# create stunnel4 log file
touch /var/log/stunnel4/stunnel.log & 

# set stunnel4 log file permission
chmod -R 777 /var/log/stunnel4/stunnel.log &

# start stunnel4
/etc/init.d/stunnel4 start &

# Start nginx
nginx -g "daemon off;"
# stunnel default config (enable/disable)
COPY stunnel4 /etc/default/stunnel4
# stunnel.conf file
COPY stunnel.conf /etc/stunnel/stunnel.conf

About

Base Nginx docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors