summaryrefslogtreecommitdiff
path: root/etc/caddy
diff options
context:
space:
mode:
authornetop://ウィビ <paul@webb.page>2026-04-13 15:08:37 -0700
committernetop://ウィビ <paul@webb.page>2026-04-13 15:08:37 -0700
commit5608dfba0d0e26594485fcf1de2079c9a5789eec (patch)
treee781ac3c3f53d307c905c589d2c8b02065322baa /etc/caddy
downloadcgit-5608dfba0d0e26594485fcf1de2079c9a5789eec.tar.gz
cgit-5608dfba0d0e26594485fcf1de2079c9a5789eec.zip
initial commit
Diffstat (limited to '')
-rw-r--r--etc/caddy/Caddyfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/etc/caddy/Caddyfile b/etc/caddy/Caddyfile
new file mode 100644
index 0000000..4d77a7f
--- /dev/null
+++ b/etc/caddy/Caddyfile
@@ -0,0 +1,17 @@
+code.webb.page {
+ @assets path /cgit.css /cgit.js /cgit.png /favicon.svg /head.html /robots.txt
+
+ handle @assets {
+ root * /var/www/cgit
+ file_server
+ }
+
+ reverse_proxy unix//run/fcgiwrap.socket {
+ transport fastcgi {
+ env SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi
+ }
+ }
+}
+
+# Refer to the Caddy docs for more information:
+# https://caddyserver.com/docs/caddyfile