jellyfin: fix caddy reverse proxy
All checks were successful
Build and Deploy / deploy (push) Successful in 2m46s
All checks were successful
Build and Deploy / deploy (push) Successful in 2m46s
This commit is contained in:
@@ -26,6 +26,14 @@
|
|||||||
|
|
||||||
services.caddy.virtualHosts."jellyfin.${service_configs.https.domain}".extraConfig = ''
|
services.caddy.virtualHosts."jellyfin.${service_configs.https.domain}".extraConfig = ''
|
||||||
reverse_proxy :${builtins.toString service_configs.ports.private.jellyfin.port} {
|
reverse_proxy :${builtins.toString service_configs.ports.private.jellyfin.port} {
|
||||||
|
# Disable response buffering for streaming. Caddy's default partial
|
||||||
|
# buffering delays fMP4-HLS segments and direct-play responses where
|
||||||
|
# Content-Length is known (so auto-flush doesn't trigger).
|
||||||
|
flush_interval -1
|
||||||
|
transport http {
|
||||||
|
# Localhost: compression wastes CPU re-encoding already-compressed media.
|
||||||
|
compression off
|
||||||
|
}
|
||||||
header_up X-Real-IP {remote_host}
|
header_up X-Real-IP {remote_host}
|
||||||
header_up X-Forwarded-For {remote_host}
|
header_up X-Forwarded-For {remote_host}
|
||||||
header_up X-Forwarded-Proto {scheme}
|
header_up X-Forwarded-Proto {scheme}
|
||||||
|
|||||||
Reference in New Issue
Block a user