diff --git a/installation/caddy/Caddyfile b/installation/caddy/Caddyfile index d50848207..6deee74d2 100644 --- a/installation/caddy/Caddyfile +++ b/installation/caddy/Caddyfile @@ -18,20 +18,18 @@ example.tld { # and `localhost.` resolves to [::0] on some systems: see issue #930 reverse_proxy 127.0.0.1:4000 - # Uncomment if using a separate media subdomain - #@mediaproxy path /media/* /proxy/* - #handle @mediaproxy { - # redir https://media.example.tld{uri} permanent - #} + @mediaproxy path /media/* /proxy/* + handle @mediaproxy { + redir https://media.example.tld{uri} permanent + } } -# Uncomment if using a separate media subdomain -#media.example.tld { -# @mediaproxy path /media/* /proxy/* -# reverse_proxy @mediaproxy 127.0.0.1:4000 { -# transport http { -# response_header_timeout 10s -# read_timeout 15s -# } -# } -#} +media.example.tld { + @mediaproxy path /media/* /proxy/* + reverse_proxy @mediaproxy 127.0.0.1:4000 { + transport http { + response_header_timeout 10s + read_timeout 15s + } + } +}