diff options
Diffstat (limited to 'site/cgit/Caddyfile')
| -rw-r--r-- | site/cgit/Caddyfile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/site/cgit/Caddyfile b/site/cgit/Caddyfile new file mode 100644 index 0000000..679610a --- /dev/null +++ b/site/cgit/Caddyfile @@ -0,0 +1,15 @@ +git.hwebs.info { + @static path /cgit.css /cgit.png /cgit.js /favicon.ico /robots.txt /profile.png + handle @static { + root * /usr/local/www/cgit + file_server + } + + handle { + reverse_proxy unix//var/run/fcgiwrap/fcgiwrap.sock { + transport fastcgi { + env SCRIPT_FILENAME /usr/local/www/cgit/cgit.cgi + } + } + } +} |
