Temporarily disable authentication for testing WebRTC
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 20s

This commit is contained in:
Your Name
2025-09-02 09:32:38 +12:00
parent 69ac486533
commit 0d8a252e01
4 changed files with 17 additions and 11 deletions

View File

@@ -26,11 +26,11 @@ services:
MTX_PATHS_COURT_SOURCEPROTOCOL: tcp MTX_PATHS_COURT_SOURCEPROTOCOL: tcp
# Force all paths to start immediately # Force all paths to start immediately
MTX_PATHDEFAULTS_SOURCEONDEMAND: "no" MTX_PATHDEFAULTS_SOURCEONDEMAND: "no"
# Disable all authentication # Authentication disabled for testing
MTX_PATHDEFAULTS_PUBLISHUSER: "" # MTX_PATHDEFAULTS_PUBLISHUSER: ${MEDIAMTX_USER}
MTX_PATHDEFAULTS_PUBLISHPASS: "" # MTX_PATHDEFAULTS_PUBLISHPASS: ${MEDIAMTX_PASS}
MTX_PATHDEFAULTS_READUSER: "" # MTX_PATHDEFAULTS_READUSER: ${MEDIAMTX_USER}
MTX_PATHDEFAULTS_READPASS: "" # MTX_PATHDEFAULTS_READPASS: ${MEDIAMTX_PASS}
healthcheck: healthcheck:
test: ["CMD", "wget", "-q", "-O", "-", "http://localhost:9997/v2/paths/list"] test: ["CMD", "wget", "-q", "-O", "-", "http://localhost:9997/v2/paths/list"]
interval: 30s interval: 30s

View File

@@ -34,11 +34,11 @@ webrtcAllowOrigin: '*'
# Path defaults # Path defaults
pathDefaults: pathDefaults:
# Disable authentication # Authentication disabled for testing
readUser: # readUser: stream
readPass: # readPass: squashkiwi
publishUser: # publishUser: stream
publishPass: # publishPass: squashkiwi
# Path Configuration # Path Configuration
paths: paths:

View File

@@ -40,10 +40,13 @@ http {
proxy_pass http://[::1]:8888/; proxy_pass http://[::1]:8888/;
proxy_http_version 1.1; proxy_http_version 1.1;
# Forward authentication headers
proxy_set_header Authorization $http_authorization;
# CORS headers # CORS headers
add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods "GET, OPTIONS"; add_header Access-Control-Allow-Methods "GET, OPTIONS";
add_header Access-Control-Allow-Headers "Range"; add_header Access-Control-Allow-Headers "Range, Authorization";
# Cache HLS segments # Cache HLS segments
proxy_cache hls_cache; proxy_cache hls_cache;
@@ -74,6 +77,7 @@ http {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Authorization $http_authorization;
proxy_buffering off; proxy_buffering off;
proxy_request_buffering off; proxy_request_buffering off;

View File

@@ -33,6 +33,8 @@ RECORDINGS_FOLDER=${RECORDINGS_FOLDER}
MTX_PATHS_COURT_SOURCE=rtsp://${CAMERA_USER}:${CAMERA_PASSWORD}@${CAMERA_IP}:${CAMERA_RTSP_PORT}/cam/realmonitor?channel=1&subtype=0 MTX_PATHS_COURT_SOURCE=rtsp://${CAMERA_USER}:${CAMERA_PASSWORD}@${CAMERA_IP}:${CAMERA_RTSP_PORT}/cam/realmonitor?channel=1&subtype=0
MTX_PATHS_COURT_MAIN_SOURCE=rtsp://${CAMERA_USER}:${CAMERA_PASSWORD}@${CAMERA_IP}:${CAMERA_RTSP_PORT}/cam/realmonitor?channel=1&subtype=0 MTX_PATHS_COURT_MAIN_SOURCE=rtsp://${CAMERA_USER}:${CAMERA_PASSWORD}@${CAMERA_IP}:${CAMERA_RTSP_PORT}/cam/realmonitor?channel=1&subtype=0
MTX_PATHS_COURT_SUB_SOURCE=rtsp://${CAMERA_USER}:${CAMERA_PASSWORD}@${CAMERA_IP}:${CAMERA_RTSP_PORT}/cam/realmonitor?channel=1&subtype=1 MTX_PATHS_COURT_SUB_SOURCE=rtsp://${CAMERA_USER}:${CAMERA_PASSWORD}@${CAMERA_IP}:${CAMERA_RTSP_PORT}/cam/realmonitor?channel=1&subtype=1
MEDIAMTX_USER=${MEDIAMTX_USER}
MEDIAMTX_PASS=${MEDIAMTX_PASS}
SQUASHKIWI_API=${SQUASHKIWI_API} SQUASHKIWI_API=${SQUASHKIWI_API}
COURT_ID=${COURT_ID} COURT_ID=${COURT_ID}
IDLE_TIMEOUT=${IDLE_TIMEOUT} IDLE_TIMEOUT=${IDLE_TIMEOUT}