fix(mediamtx): auth http fingerprint

This commit is contained in:
2026-04-29 18:38:42 +02:00
parent 8a924f2d52
commit 0597cb1157
3 changed files with 4 additions and 5 deletions

View File

@@ -63,6 +63,8 @@ services:
dockerfile: docker/mediamtx/Dockerfile dockerfile: docker/mediamtx/Dockerfile
environment: environment:
SSL_CERT_FILE: /etc/ssl/certs/ca-certificates.crt SSL_CERT_FILE: /etc/ssl/certs/ca-certificates.crt
MTX_AUTHHTTPADDRESS: ${MEDIAMTX_AUTH_HTTP_ADDRESS:-http://hctv:3000/api/mediamtx/publish}
MTX_WEBRTCADDITIONALHOSTS: ${MEDIAMTX_WEBRTC_ADDITIONAL_HOSTS:-}
ports: ports:
- '8890:8890/udp' - '8890:8890/udp'
postgres-exporter: postgres-exporter:

View File

@@ -9,9 +9,5 @@ MEDIAMTX_API_HOST=mmtxapi.hackclub.tv
# public ip for webrtc stuff # public ip for webrtc stuff
MEDIAMTX_WEBRTC_ADDITIONAL_HOSTS=203.0.113.10 MEDIAMTX_WEBRTC_ADDITIONAL_HOSTS=203.0.113.10
# mediamtx publish route on hctv
MEDIAMTX_AUTH_HTTP_ADDRESS=https://hackclub.tv/api/mediamtx/publish MEDIAMTX_AUTH_HTTP_ADDRESS=https://hackclub.tv/api/mediamtx/publish
MEDIAMTX_AUTH_HTTP_FINGERPRINT=
# If MediaMTX still reports x509 unknown-authority for the auth callback even
# with SSL_CERT_FILE set in compose, set MTX_AUTHHTTPFINGERPRINT manually on
# the server as a temporary cert pin.

View File

@@ -34,6 +34,7 @@ services:
SSL_CERT_FILE: /etc/ssl/certs/ca-certificates.crt SSL_CERT_FILE: /etc/ssl/certs/ca-certificates.crt
MTX_WEBRTCADDITIONALHOSTS: ${MEDIAMTX_WEBRTC_ADDITIONAL_HOSTS} MTX_WEBRTCADDITIONALHOSTS: ${MEDIAMTX_WEBRTC_ADDITIONAL_HOSTS}
MTX_AUTHHTTPADDRESS: ${MEDIAMTX_AUTH_HTTP_ADDRESS} MTX_AUTHHTTPADDRESS: ${MEDIAMTX_AUTH_HTTP_ADDRESS}
MTX_AUTHHTTPFINGERPRINT: ${MEDIAMTX_AUTH_HTTP_FINGERPRINT:-}
labels: labels:
- traefik.enable=true - traefik.enable=true