Prefix the command for opening the file with the word "sudo", such as "sudo vi /usr/local/nginx/conf/nginx.conf". That will let you open and edit the file as root.
Is this what it should look like? How do I now save the config edit?
Dodge thank you!
Prefix the command for opening the file with the word "sudo", such as "sudo vi /usr/local/nginx/conf/nginx.conf". That will let you open and edit the file as root.
Yes, that looks right for a basic setup.
To save and quit in vi, first press Escape to make sure you're not in Insert mode, and type :wq and hit enter.
Hello !
Thank you very much for the guide. I installed it on a Debian VPS and it works well. I'm using nginx to push my streams on twitch.
However, I'm having trouble with security issues. For now anyone that has my VPS' IP is able to publish streams on my twitch channel. ("allow publish all" by default I guess)
Unfortunatefly, my personnal IP changes almost every day so I cannot use the "allow publish MY_IP" & "deny publish all" feature. Is there any other way to secure the server ? Maybe using a steaming key ?
Thank you very much :)
Hi,
Does anyone know what is causing this problem? I have looked around a lot on different forums, but I haven't been able to find a solution. When I try to use ffmpeg, it seems that ffmpeg is constantly closing and restarting itself. The same was happening with avconv. I saw that people said it was possibly permission issues and nginx not being able to access ffmpeg, but I tried running nginx under user root and am not seeing anything different. Anyone know what's wrong? I have linked the error.log and nginx.conf.
nginx.conf: http://pastebin.com/zVCNSrXM
error.log: http://pastebin.com/NSjXi6Dm
Have you tried running the command manually outside of nginx when a stream is live? You can also try piping the output of the actual command using >> /path/to/some/log.log at the end of your ffmpeg line.
EDIT: also, your path is missing the stream key: rtmp://192.168.1.9/livein/streamkey
Have you tried running the command manually outside of nginx when a stream is live? You can also try piping the output of the actual command using >> /path/to/some/log.log at the end of your ffmpeg line.
EDIT: also, your path is missing the stream key: rtmp://192.168.1.9/livein/streamkey
This is what I end up getting when I execute ffmpeg outside of nginx: http://pastebin.com/yeDjKTSN
So now you have to actually replace STREAM_KEY with your twitch stream key. Make sure you don't post that in any actual configs/logs on here though!
Hi
when sudo systemctl start nginx
the system show this message:
[emerg]: bind() to 0.0.0.0:1935 failed (98: Address already in use)
thank you for your hep
I'm having the same issues with a MacBook Air as the RTMP server (installed nginx with the rtmp package via homebrew) and my windows 10 PC with OBS. I can ping the MacBook, but can't connect. Oddly, I can get to the apache2 webserver (port 80) but not the nginx webserver (port 8080) - so something is obviously fishy. *sigh*For the google VM, I canguess that Google is blocking the traffic. For the local VM, no idea, RPi started working once I recompiled with --debug and made no other changes. Not sure why turning Debug on made a difference, but apparently it does.
Hello people good night!
I've read this thread from beginning to end but did not find anything to help me.
I need a nginx configuration that works with HLS, tested several here but none worked, did you guys could help me?
I am using CentOS with nginx + rtmp module
If I run only RTMP works normally and can pass but as we know the RTMP does not work for mobile devices so accurate HLS.
Thank you very much!
I am not the greatest tech guy so I must ask. Does this set up mean I can have a totally private server to stream to and not pay a 500 a month bill to dacast for the bandwith. Thats what I am interested in is a self hosted live streaming video site from a dedicated server.
I want this for personal use I dont want to be the guy you go to to stream yours know what I mean.
Regards