Files
hugo_docker/ansible/templates/Caddyfile.j2
T
2026-09-08 11:02:29 +02:00

11 lines
404 B
Caddyfile

{# Template: Caddyfile für Ziel-Host #}
https://{{ target_hostname }}:{{ target_port }} {
tls /etc/caddy/certs/{{ target_hostname }}.crt /etc/caddy/certs/{{ target_hostname }}.key
reverse_proxy hugo:1313
}
{% if target_hostname != 'localhost' %}
https://localhost:{{ target_port }} {
tls /etc/caddy/certs/localhost.crt /etc/caddy/certs/localhost.key
reverse_proxy hugo:1313
}
{% endif %}