all repos

onasty @ ac9bab342dae825c63aeeafe0f8af33fbc737850

a one-time notes service

onasty/infra/caddy/Caddyfile(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
your.domain.name {
    encode gzip

    reverse_proxy /api/* core:8000

    root * /srv/frontend
    try_files {path} /index.html
    file_server

    header {
        Strict-Transport-Security max-age=31536000;
        X-Content-Type-Options nosniff
        X-Frame-Options DENY
        X-XSS-Protection "1; mode=block"
    }
}