summaryrefslogtreecommitdiffstats
path: root/roles/cgit/templates/cgit.caddy.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/cgit/templates/cgit.caddy.j2')
-rw-r--r--roles/cgit/templates/cgit.caddy.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/cgit/templates/cgit.caddy.j2 b/roles/cgit/templates/cgit.caddy.j2
index 8ddc6d88..7b04a77b 100644
--- a/roles/cgit/templates/cgit.caddy.j2
+++ b/roles/cgit/templates/cgit.caddy.j2
@@ -1,3 +1,10 @@
{{ cgit_hostname }} {
+ tls internal
reverse_proxy {{ network_ipv4_address }}:{{ cgit_port }}
}
+{% if cgit_public_hostname is defined %}
+
+{{ cgit_public_hostname }} {
+ reverse_proxy {{ network_ipv4_address }}:{{ cgit_port }}
+}
+{% endif %}