Skip to content

Commit d32891f

Browse files
committed
Tell Caddy the host internal FQDN
1 parent d8b8f2c commit d32891f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/Caddyfile.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ http://{{ caddy.addresses.webhook }} {
5050
}
5151

5252
{% if caddy.tls_config is defined %}
53-
https://{{ caddy.addresses.main }} {
53+
https://{{ caddy.addresses.main }}, https://{{ ansible_fqdn }} {
5454
{{ caddy.tls_config }}
5555
{% else %}
56-
http://{{ caddy.addresses.main }} {
56+
http://{{ caddy.addresses.main }}, http://{{ ansible_fqdn }} {
5757
{% endif %}
5858

5959
root * {{ caddy.site_dir }}

0 commit comments

Comments
 (0)