summaryrefslogtreecommitdiff
path: root/Caddyfile
diff options
context:
space:
mode:
authorYour Name <you@example.com>2025-12-29 18:28:13 +0800
committerYour Name <you@example.com>2025-12-29 18:28:13 +0800
commit214f4bab8b852e9b66d909bc22e5f9119da7dfb5 (patch)
treeee970b0f1738e5e08afe24247305be2defb27735 /Caddyfile
initial commit
Diffstat (limited to 'Caddyfile')
-rw-r--r--Caddyfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Caddyfile b/Caddyfile
new file mode 100644
index 0000000..b783e7b
--- /dev/null
+++ b/Caddyfile
@@ -0,0 +1,22 @@
1{$DOMAIN} {
2 handle {$CGIT_CSS} {
3 root * /usr/share/webapps/cgit
4 file_server
5 }
6
7 handle {$CGIT_LOGO} {
8 root * /usr/share/webapps/cgit
9 file_server
10 }
11
12 handle {
13 reverse_proxy unix/{$FCGI_SOCK} {
14 transport fastcgi {
15 env SCRIPT_FILENAME /usr/share/webapps/cgit/cgit.cgi
16 env QUERY_STRING {query}
17 env HTTP_HOST {host}
18 env PATH_INFO {path}
19 }
20 }
21 }
22}