mirror of
https://github.com/nihilvux/bancho.py.git
synced 2025-09-16 02:28:38 -07:00
31 lines
653 B
Caddyfile
31 lines
653 B
Caddyfile
# Comment this out if you need to explicitly
|
|
# use self-signed certs.
|
|
# NOTE: Not necessary if using a '.local' domain
|
|
#
|
|
# {
|
|
# local_certs
|
|
# }
|
|
|
|
c.{$DOMAIN}, ce.{$DOMAIN}, c4.{$DOMAIN}, osu.{$DOMAIN}, b.{$DOMAIN}, api.{$DOMAIN} {
|
|
encode gzip
|
|
reverse_proxy * 127.0.0.1:{$APP_PORT} {
|
|
header_up X-Real-IP {remote_host}
|
|
}
|
|
|
|
request_body {
|
|
max_size 20MB
|
|
}
|
|
}
|
|
|
|
assets.{$DOMAIN} {
|
|
encode gzip
|
|
root * {$DATA_DIRECTORY}/assets
|
|
file_server
|
|
}
|
|
|
|
a.{$DOMAIN} {
|
|
encode gzip
|
|
root * {$DATA_DIRECTORY}/avatars
|
|
try_files {path} {file.base}.png {file.base}.jpg {file.base}.gif {file.base}.jpeg {file.base}.jfif default.jpg =404
|
|
}
|