Merge pull request #352 from skrashevich/patch-listen-tls

This commit is contained in:
Alexey Khit
2023-06-29 20:30:40 +03:00
2 changed files with 44 additions and 1 deletions
+9 -1
View File
@@ -623,11 +623,19 @@ api:
base_path: "/rtc" # default "", API prefix for serve on suburl (/api => /rtc/api)
static_dir: "www" # default "", folder for static files (custom web interface)
origin: "*" # default "", allow CORS requests (only * supported)
tls_listen: ":1985" # default "", HTTPS port
tls_cert: | # default "". PEM-encoded fullchain certificate for https
-----BEGIN CERTIFICATE-----
.....
-----END CERTIFICATE-----
tls_private_key: | # default "". PEM-encoded private key for https
-----BEGIN PRIVATE KEY-----
.....
-----END PRIVATE KEY-----
```
**PS:**
- go2rtc doesn't provide HTTPS. Use [Nginx](https://nginx.org/) or [Ngrok](#module-ngrok) or [Home Assistant Add-on](#go2rtc-home-assistant-add-on) for this tasks
- MJPEG over WebSocket plays better than native MJPEG because Chrome [bug](https://bugs.chromium.org/p/chromium/issues/detail?id=527446)
- MP4 over WebSocket was created only for Apple iOS because it doesn't support MSE and native MP4