This repository has been archived on 2022-10-14. You can view files and clone it, but cannot push or open issues or pull requests.
gulag-dockerized/config-template/Caddyfile

18 lines
411 B
Caddyfile

:80 { # use with cloudflare flexible mode
@guweb {
host osu.example.com # change
not path_regexp ^\/(?:web|api|users|ss|d|p|beatmaps|beatmapsets|community)(?:\/.*|$)
}
@gulag {
header_regexp Host ^(?:c[e4-6]?|osu|a|b)\.example\.com$ # change
}
reverse_proxy @guweb unix//run/guweb.sock
reverse_proxy @gulag unix//run/gulag.sock
}
assets.example.com:80 {
root * /gulag/.data/assets
file_server
}