Skip to content

Commit 2840dc1

Browse files
authored
Merge pull request #18 from QuLogic/caddy-fqdn
Tell Caddy the host internal FQDN
2 parents 6919741 + d32891f commit 2840dc1

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)