Files
Media-Server-Setup/Caddyfile.example
Brandyn / Techy b2869c3740 Generated configs out of the repo: *.example.* templates only; configure.py refuses to apply over CHANGEME placeholders
A deploy copied mediamtx.yml (template) over the server's generated file and the next apply
wiped all streamers. Generated files are now gitignored so scp -r cannot clobber them.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-31 00:32:30 -05:00

30 lines
594 B
Caddyfile

media.example.com {
encode zstd gzip
# dump endpoint (python service on the host, does its own auth)
handle /dump* {
reverse_proxy 127.0.0.1:8080
}
# Syncthing admin UI (its own login; strip the prefix, present a local Host to pass its host check)
redir /sync /sync/ 308
handle_path /sync/* {
reverse_proxy 127.0.0.1:8384 {
header_up Host {upstream_hostport}
}
}
# OBS browser dock (static)
handle_path /dock* {
root * /srv/dock
file_server
}
# everything else is copyparty (web UI + WebDAV)
handle {
reverse_proxy 127.0.0.1:3923 {
flush_interval -1
}
}
}