blob: f8694d2f062b3ae2d62b5b010324497d225f16c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
(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
}
}
|