11 lines
404 B
Caddyfile
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 %} |