forked from vejeta/conquer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile
More file actions
30 lines (25 loc) · 657 Bytes
/
Caddyfile
File metadata and controls
30 lines (25 loc) · 657 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
28
29
30
# Conquer — Caddy reverse proxy with automatic TLS (T437)
# Used by docker-compose.prod.yml
# Set DOMAIN env var or replace {$DOMAIN} below
{$DOMAIN} {
reverse_proxy server:3000
# WebSocket support
@websockets {
header Connection *Upgrade*
header Upgrade websocket
}
reverse_proxy @websockets server:3000
# Security headers
header {
X-Content-Type-Options nosniff
X-Frame-Options DENY
X-XSS-Protection "1; mode=block"
Referrer-Policy strict-origin-when-cross-origin
}
# Gzip compression
encode gzip
log {
output stdout
format json
}
}