forked from AkkomaGang/akkoma
Merge pull request 'Update Caddyfile' (#809) from norm/akkoma:caddyfile-update into develop
Reviewed-on: AkkomaGang/akkoma#809
This commit is contained in:
commit
5fdb5d69d2
1 changed files with 13 additions and 17 deletions
|
@ -12,26 +12,22 @@ example.tld {
|
||||||
output file /var/log/caddy/akkoma.log
|
output file /var/log/caddy/akkoma.log
|
||||||
}
|
}
|
||||||
|
|
||||||
encode gzip
|
|
||||||
|
|
||||||
# this is explicitly IPv4 since Pleroma.Web.Endpoint binds on IPv4 only
|
# this is explicitly IPv4 since Pleroma.Web.Endpoint binds on IPv4 only
|
||||||
# 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
|
}
|
||||||
# }
|
}
|
||||||
# }
|
}
|
||||||
#}
|
|
||||||
|
|
Loading…
Reference in a new issue