-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile.example
More file actions
39 lines (37 loc) · 1.19 KB
/
Copy pathCaddyfile.example
File metadata and controls
39 lines (37 loc) · 1.19 KB
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
# Garely — Caddy reverse proxy with automatic HTTPS.
#
# install.sh generates the real ./Caddyfile from your answers. To set it up by
# hand: cp Caddyfile.example Caddyfile then replace meet.example.com below.
# Optional: prepend a global block for the Let's Encrypt account email:
#
# {
# email you@example.com
# }
#
# Routing mirrors the production nginx setup: the browser reaches LiveKit's
# signaling WebSocket at wss://<domain>/livekit (prefix stripped), and the
# Next.js app serves everything else.
meet.example.com {
encode zstd gzip
header Permissions-Policy "display-capture=(self)"
request_body {
max_size 50MB
}
# LiveKit signaling WebSocket + API (strip the /livekit prefix)
handle_path /livekit/* {
reverse_proxy livekit:7880
}
# LiveKit Twirp API
handle /twirp/* {
reverse_proxy livekit:7880
}
# Garely RDP gateway WebSocket (servers pillar §15) — active only when the
# `rdp` compose profile runs; the browser RDP client opens wss://<domain>/jet/rdp.
handle /jet/* {
reverse_proxy garely-rdp-gw:7171
}
# Next.js app (everything else)
handle {
reverse_proxy eam-meet:3000
}
}