-
Notifications
You must be signed in to change notification settings - Fork 5
/
Caddyfile
27 lines (23 loc) · 951 Bytes
/
Caddyfile
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
{$SITE_ADDRESS:companies.stream} {
log
handle {
root * /client
encode zstd gzip
try_files {path} {path}.html {path}index.html
header Content-Security-Policy "default-src 'self' ;script-src 'self';img-src 'self' data:;worker-src 'self';style-src 'self' 'unsafe-inline' fonts.googleapis.com;manifest-src 'self';connect-src ws: 'self' fonts.googleapis.com fonts.gstatic.com;font-src fonts.google.com fonts.gstatic.com data:"
header /assets/* Cache-Control max-age=31536000,immutable
file_server
}
@websockets {
header Connection *Upgrade*
header Upgrade websocket
# protocol ws
}
handle @websockets {
reverse_proxy api:3000
}
# for health checks
handle_path /events/* {
reverse_proxy api:3000
}
}