-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathCaddyfile
More file actions
34 lines (28 loc) · 782 Bytes
/
Copy pathCaddyfile
File metadata and controls
34 lines (28 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
28
29
30
31
32
33
34
{
# Uncomment for production with a real domain
# email admin@example.com
}
:80, :443 {
# caddy:2 ships zstd + gzip but NOT brotli — listing `br` makes Caddy fail
# to start ("encoder module br not registered").
encode zstd gzip
# The API namespaces every route under /api itself (e.g. /api/auth/login).
# Do NOT strip the prefix here, or requests reach the API as /auth/login
# and 404.
handle /api/* {
reverse_proxy api:3000
}
handle /events {
reverse_proxy api:3000
}
handle /agent-socket {
reverse_proxy api:3000
}
# Auth-checked file serving lives at /files/<key> on the API.
handle /files/* {
reverse_proxy api:3000
}
handle {
reverse_proxy web:80
}
}