teaching-webterm/ansible/templates/Caddyfile.j2

11 lines
375 B
Django/Jinja

{{ sshwifty_hostname }}:{{ sshwifty_public_port }} {
log
reverse_proxy localhost:{{ sshwifty_internal_port }} {
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}
}
}