-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile
More file actions
27 lines (23 loc) · 782 Bytes
/
Copy pathCaddyfile
File metadata and controls
27 lines (23 loc) · 782 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
# Self-hosted Kyrozen reverse proxy.
#
# Replace kyrozen.chat with your domain for automatic HTTPS.
# Caddy will automatically request and renew a Let's Encrypt certificate.
kyrozen.chat {
encode gzip
# Use Caddy's publicly trusted certificate for OAuth and Afdian Webhook
# callbacks. DNS for kyrozen.chat must point to this server and ports 80/443
# must be reachable so Caddy can complete ACME validation.
# WebSocket upgrade support
@websockets {
header Connection *Upgrade*
header Upgrade websocket
}
reverse_proxy @websockets kyrozen-backend:8000
# Forward everything else to the backend
reverse_proxy kyrozen-backend:8000 {
header_up Host {host}
header_up X-Real-IP {remote}
header_up X-Forwarded-For {remote}
header_up X-Forwarded-Proto {scheme}
}
}