(security) { header { Content-Security-Policy "default-src 'none'; style-src 'self'; img-src 'self'; font-src 'self'; base-uri 'none'; frame-ancestors 'none'; form-action 'none'" X-Content-Type-Options "nosniff" X-Frame-Options "DENY" Referrer-Policy "no-referrer" Permissions-Policy "camera=(), microphone=(), geolocation=()" Strict-Transport-Security "max-age=31536000" } } b7j0c.org { import security root * /usr/local/www file_server { hide .git .env } } grokloc.com { import security root * /usr/local/www-grokloc file_server { hide .git .env } } batonpass.systems { import security root * /usr/local/www-batonpass file_server { hide .git .env } } git.b7j0c.org { encode zstd gzip @assets path /cgit.css /cgit.png /cgit.js /favicon.ico /robots.txt handle @assets { root * /usr/share/cgit file_server } @readonly method GET HEAD handle @readonly { reverse_proxy unix//run/fcgiwrap.socket { transport fastcgi { env SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi env SCRIPT_NAME / env PATH_INFO {http.request.uri.path} } } } handle { respond "Method Not Allowed" 405 } }