-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile
More file actions
45 lines (38 loc) · 991 Bytes
/
Copy pathCaddyfile
File metadata and controls
45 lines (38 loc) · 991 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
40
41
42
43
44
45
# Caddyfile for audio diarization service
# Main API endpoint
:80 {
# API routes with basic rate limiting
handle /api/* {
# Add basic 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
}
reverse_proxy app:8000
}
# Health check (no rate limiting)
handle /health {
reverse_proxy app:8000
}
# Grafana dashboard
handle /grafana/* {
reverse_proxy grafana:3000
}
# Prometheus metrics (optional, for debugging)
handle /prometheus/* {
reverse_proxy prometheus:9090
}
# Default response for root
handle {
respond "Audio Diarization Service MVP" 200
}
# Enable compression
encode gzip
# Logging
log {
output file /var/log/caddy/access.log
format json
}
}