teaching-webterm/ansible/templates/Caddyfile.j2

12 lines
425 B
Text
Raw Normal View History

2022-05-31 00:14:12 +00:00
{% if sshwifty_hostname != "0.0.0.0" %}{{ sshwifty_hostname }}{% endif %}:{{ sshwifty_public_port }} {
2022-05-26 15:31:39 +00:00
log
2022-05-30 19:35:02 +00:00
reverse_proxy localhost:{{ sshwifty_internal_port }} {
2022-05-26 15:31:39 +00:00
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}
}
}