nginx-rtmp-module
nginx-rtmp-module copied to clipboard
Dockerfile in Wiki Error
I get this error after compiling the Dockerfile listed in the wiki:
2018/04/30 19:59:12 [emerg] 1#1: module "ngx_rtmp_module" is already loaded in /etc/nginx/modules-enabled/50-mod-rtmp.conf:1 nginx: [emerg] module "ngx_rtmp_module" is already loaded in /etc/nginx/modules-enabled/50-mod-rtmp.conf:1
Seems like module is built directly into nginx in that example, but /etc/nginx/modules-enabled/50-mod-rtmp.conf
file is created anyway for some reason.
Just add that step to your dockerfile:
RUN rm /etc/nginx/modules-enabled/50-mod-rtmp.conf
Keep in mind this is only a temporary solution and this would need a proper fix, but I'm not very proficient with nginx buildsystem.
Same happened to me. Why do we have to compile nginx in the first place? Can't we get ngx_rtmp_module as a compiled package?
Seems like module is built directly into nginx in that example, but
/etc/nginx/modules-enabled/50-mod-rtmp.conf
file is created anyway for some reason. Just add that step to your dockerfile:RUN rm /etc/nginx/modules-enabled/50-mod-rtmp.conf
Keep in mind this is only a temporary solution and this would need a proper fix, but I'm not very proficient with nginx buildsystem.
There is 22 lines of run commands, can you specify which command should be followed by this one?
Add it after the last RUN
command in that file.