git.caddy (443B)
1 (tailnet_only) { 2 @nottailnet not remote_ip 100.64.0.0/10 fd7a:115c:a1e0::/48 3 respond @nottailnet "forbidden" 403 4 } 5 6 http://__GIT_HOSTNAME__, http://__TAILSCALE_IP__ { 7 import tailnet_only 8 9 handle_path /git/* { 10 root * /home/ryan/repos 11 @refs path_regexp (HEAD|info/refs|objects/info/packs)$ 12 header @refs Cache-Control "no-cache" 13 file_server 14 } 15 16 root * /home/ryan/repos/www 17 file_server 18 }