From 5608dfba0d0e26594485fcf1de2079c9a5789eec Mon Sep 17 00:00:00 2001 From: "netop://ウィビ" Date: Mon, 13 Apr 2026 15:08:37 -0700 Subject: initial commit --- etc/caddy/Caddyfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 etc/caddy/Caddyfile (limited to 'etc/caddy/Caddyfile') 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 -- cgit v1.2.3