summaryrefslogtreecommitdiff
path: root/etc/caddy/Caddyfile
diff options
context:
space:
mode:
Diffstat (limited to 'etc/caddy/Caddyfile')
-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