summaryrefslogtreecommitdiff
path: root/caddy/Caddyfile
blob: 0283f184280e09ba42fd7d83a1fa5ed59e6627ea (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
(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
    }
}