1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-17 18:49:15 +00:00

Uncomment media subdomain settings in Caddyfile

Now that a media subdomain is strongly recommended for security reasons,
there is no reason for them to be commented out by default.
This commit is contained in:
Norm 2024-06-17 23:12:55 -04:00
parent 5992e8bb16
commit 962847fdc3

View file

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