18 lines
411 B
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
|
|
}
|