本文最后更新于 1446 天前,其中的信息可能已经有所发展或是发生改变。
#proxy.xyz.blue {
# tls /etc/caddy/tls/xyz.blue/fullchain.pem /etc/caddy/tls/xyz.blue/privkey.pem
# header {
# Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
# }
# #handle_path
# handle_path /caddy/* {
# #reverse_proxy https://caddyserver.com {
# reverse_proxy https://www.google.com {
# header_up Host {http.reverse_proxy.upstream.hostport}
# #header_up Host {http.request.host}
# header_down Access-Control-Allow-Headers *
# header_down Access-Control-Allow-Origin *
# }
# }
#}
#cloud.xyz.blue {
# encode zstd gzip
# tls /etc/caddy/tls/xyz.blue/fullchain.pem /etc/caddy/tls/xyz.blue/privkey.pem
# header {
# Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
# }
# reverse_proxy http://127.0.0.1:808 {
#header_up Host {http.request.host}
#header_up Host {http.reverse_proxy.upstream.hostport}
# header_up X-Real-IP {http.request.remote}
# header_up X-Forwarded-For {http.request.remote}
# header_up X-Forwarded-Port {http.request.port}
# header_up X-Forwarded-Proto {http.request.scheme}
# header_down Access-Control-Allow-Headers *
# header_down Access-Control-Allow-Origin *
# }
#}