From e8c668bc0bbf46bd2ca6e8c946ad297b157dd347 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 16 Jul 2026 17:36:44 +0200 Subject: Allow cgit to theoretically deploy to public URL --- roles/cgit/templates/cgit.caddy.j2 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'roles/cgit/templates/cgit.caddy.j2') 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 %} -- cgit v1.2.3