teaching-webterm/ansible/templates/Caddyfile.j2

12 lines
325 B
Text
Raw Normal View History

2022-05-26 15:31:39 +00:00
http://0.0.0.0:80 {
log
reverse_proxy http://localhost:8080 {
header_up Host {http.request.host}
header_up X-Real-IP {http.request.remote.host}
header_up X-Forwarded-For {http.request.remote.host}
header_up X-Forwarded-Port {http.request.port}
header_up X-Forwarded-Proto {http.request.scheme}
}
}