deepch / RTSPtoWeb

RTSP Stream to WebBrowser
MIT License
1.27k stars 302 forks source link

Question for external access #77

Open Yongsanzip opened 2 years ago

Yongsanzip commented 2 years ago

Dear deepch,

I wanna make the project available access from out of local network,

Even though ddns is set to public IP and port warding is set,

it is failing to load the video of ipcam installed in the same network.

In my opinion,

it seems to be a problem caused by the different IP of the virtual machine where the project is running and the IP of ipcam.

So, i wanna tried to modify the server program like apache2 or nginx but, this project seems like to no use those programs.

How can i adjust for it?

Thanks.

Yongsanzip commented 2 years ago

I figured out the HTTPS is not enable, so I tried to use openssl to make files named 'server.crt' and 'server.key'

but it still cannot open WebUI with https protocol , how could i adjust for it?

those files are in same folder with config.json. and config.json can reachable from WebUI for add stream and etc.

and i modify the "https" to true at config.json but still no.

Thanks

deepch commented 2 years ago

1) change "https": true, "https_port": ":443", "https_cert": "server.crt", "https_key": "server.key",

2) open you browser https://yousite.com/

https not work on IP address you need ssl for domain and install to domain or not use ssl

show me ssl error please.

henryeticom commented 1 year ago

This doesn't work i get this error http: TLS handshake error from ipaddress:45461: acme/autocert: host "domain.xyz" not configured in HostWhitelist. Is there any other configuration needed for https to work?

karthikindia commented 1 month ago

https not work on IP address you need ssl for domain and install to domain or not use ssl in letsencrypt we dont get crt or key ? how to configure this, is there any documentation using letsencrypt with rtsp2web ?

karthikindia commented 1 month ago
  1. change "https": true, "https_port": ":443", "https_cert": "server.crt", "https_key": "server.key",
  2. open you browser https://yousite.com/

https not work on IP address you need ssl for domain and install to domain or not use ssl

show me ssl error please.

i tried this method but, now the site opens using https but the rtsp stream is throwing wss error pls advice