schreinerman / docker-secure-nginx-rtmp

Inspired by alfg/docker-nginx-rtmp adding security to push
MIT License
7 stars 6 forks source link

I cannot get the stream to work. #1

Open koraysels opened 1 year ago

koraysels commented 1 year ago

hi, i have set up everything in obs and it conects and streams, also in the logs i can see some logging. And when i go to https://rtmp.stream.cursorpointer.be/stream/hello.m3u8 it does not reply with an error page but i cannot get the stream to show up.

GET https://rtmp.stream.cursorpointer.be/stream/hello.m3u8 net::ERR_CONNECTION_REFUSED

Do you have any idea as to why this might happen?

it does give me a hint like why ssl did not install ?

Successfully received certificate.
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  | Certificate is saved at: /etc/letsencrypt/live/rtmp.stream.cursorpointer.be/fullchain.pem
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  | Key is saved at:         /etc/letsencrypt/live/rtmp.stream.cursorpointer.be/privkey.pem
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  | This certificate expires on 2023-07-09.
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  | These files will be updated when the certificate renews.
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  |
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  | Deploying certificate
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  | Could not install certificate
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  |
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  | NEXT STEPS:
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  | - The certificate was saved, but could not be installed (installer: nginx). After fixing the error shown below, try installing it again by running:
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  |   certbot install --cert-name rtmp.stream.cursorpointer.be
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  | - The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  |
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  | Saving debug log to /var/log/letsencrypt/letsencrypt.log
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  | Could not automatically find a matching server block for rtmp.stream.cursorpointer.be. Set the `server_name` directive to use the Nginx installer.
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  | Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  | Enabling SSL...
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  | Updating NGINX Config...
docker-secure-nginx-rtmp-secure-nginx-rtmp-1  | Restarting NGINX...

but i cant figure it out. Also cannot get the streamto display in videojs whitout ssl disabled.

johnrhunt commented 1 year ago

Hi, yes, I'm also having lots of problems with this, I suspect it's not been used much and therefore never really tested that much. If I get it working i'll post some findings here