From 73b9aa3d22d5696366839873d0f8e9c54cd44444 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 14 May 2026 20:50:26 -0500 Subject: Support reverse proxy deployment and general container improvements --- Caddyfile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'Caddyfile') diff --git a/Caddyfile b/Caddyfile index 125cf2b..ad6f1ca 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,4 +1,10 @@ -{$SITE_ADDRESS:localhost} +{ + servers { + trusted_proxies static private_ranges + } +} + +{$SITE_ADDRESS::80} @assets path /cgit.css /cgit.js /cgit.png /favicon.ico /robots.txt handle @assets { @@ -7,8 +13,7 @@ handle @assets { } reverse_proxy unix//var/run/fgciwrap.sock { - transport fastcgi { - env SCRIPT_FILENAME /usr/share/webapps/cgit/cgit.cgi - } + transport fastcgi { + env SCRIPT_FILENAME /usr/share/webapps/cgit/cgit.cgi + } } - -- cgit v1.2.3