aboutsummaryrefslogtreecommitdiff
path: root/Caddyfile
diff options
context:
space:
mode:
authorChristian <[email protected]>2026-05-14 20:50:26 -0500
committerChristian <[email protected]>2026-05-14 21:14:12 -0500
commit73b9aa3d22d5696366839873d0f8e9c54cd44444 (patch)
tree0f2f1944161d9d069caccaf951627c3141e91ea2 /Caddyfile
parentf4dde3803de5a9e6093ff1b327a9e582096f807d (diff)
Support reverse proxy deployment and general container improvements
Diffstat (limited to 'Caddyfile')
-rw-r--r--Caddyfile15
1 files changed, 10 insertions, 5 deletions
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
+ }
}
-