diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-07-16 17:36:44 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-07-16 17:36:44 +0200 |
| commit | e8c668bc0bbf46bd2ca6e8c946ad297b157dd347 (patch) | |
| tree | 7b7cf0b132b0d86ee671f44d2cb37a4d5eb1ade7 /roles/cgit/templates/cgit.caddy.j2 | |
| parent | b8a256f91c0d278e38f19943eca53951aa7c4946 (diff) | |
Allow cgit to theoretically deploy to public URL
Diffstat (limited to 'roles/cgit/templates/cgit.caddy.j2')
| -rw-r--r-- | roles/cgit/templates/cgit.caddy.j2 | 7 |
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 %} |
