27 lines
396 B
Caddyfile
27 lines
396 B
Caddyfile
http://localhost {
|
|
handle_path /static/* {
|
|
root * /srv/static
|
|
file_server {
|
|
hide .git
|
|
precompressed zstd br gzip
|
|
}
|
|
}
|
|
handle_path /media/* {
|
|
root * /srv/media
|
|
file_server {
|
|
hide .git
|
|
precompressed zstd br gzip
|
|
}
|
|
}
|
|
|
|
reverse_proxy http://main
|
|
}
|
|
|
|
# http://localhost:8080 {
|
|
# reverse_proxy http://db-admin
|
|
# }
|
|
|
|
http://localhost:8081 {
|
|
reverse_proxy http://blog:2368
|
|
}
|