-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile
More file actions
39 lines (32 loc) · 770 Bytes
/
Caddyfile
File metadata and controls
39 lines (32 loc) · 770 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
31
32
33
34
35
36
37
38
39
# Caddyfile for Leave Bot Admin
# Local development (uncomment for local testing)
# :80 {
# reverse_proxy web:8000
# }
# Production with auto-TLS
leavebot.nilenso.com {
# Basic authentication
basicauth {
admin {$ADMIN_PASSWORD_HASH}
}
# Reverse proxy to web service
reverse_proxy web:8000
# Enable compression
encode gzip
# 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
}
# Logging
log {
output stdout
format console
}
}
# Health check endpoint without auth (for monitoring)
leavebot.nilenso.com/api/health {
reverse_proxy web:8000
}