-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile
More file actions
27 lines (22 loc) · 794 Bytes
/
Caddyfile
File metadata and controls
27 lines (22 loc) · 794 Bytes
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
{$DOMAIN}:80, {$DOMAIN}:443 {
encode gzip
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains"
X-Frame-Options "DENY"
X-Content-Type-Options "nosniff"
Referrer-Policy "no-referrer"
Content-Security-Policy "default-src 'self'; connect-src 'self' wss://{$DOMAIN} https://{$DOMAIN}; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self'; font-src 'self' data:;"
X-XSS-Protection "1; mode=block"
}
rate_limit api {
zone api { events 100; window 1m }
zone docking { events 10; window 1m }
}
@api path /api/*
reverse_proxy @api zeropain-api:8000
@ws path /ws/*
reverse_proxy @ws zeropain-api:8000
route {
reverse_proxy zeropain-web:80
}
}