summaryrefslogtreecommitdiff
path: root/etc/caddy/Caddyfile
blob: 4d77a7f44bc3750edb609a2ccf355fc96360def8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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