-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCaddyfile.example
More file actions
37 lines (32 loc) · 866 Bytes
/
Copy pathCaddyfile.example
File metadata and controls
37 lines (32 loc) · 866 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
# Abyss Caddyfile — replace your.domain.com with your actual domain
#
# Caddy auto-provisions HTTPS via Let's Encrypt.
# Build the frontend first: cd client && npm ci && npm run build
#
# Install: https://caddyserver.com/docs/install
# Run: sudo caddy start --config /path/to/Caddyfile
your.domain.com {
# API endpoints
handle /api/* {
reverse_proxy localhost:5000
}
# SignalR hub (WebSocket upgrade handled automatically by Caddy)
handle /hubs/* {
reverse_proxy localhost:5000
}
# Uploaded files
handle /uploads/* {
reverse_proxy localhost:5000
}
# LiveKit WebSocket signaling (TLS terminated by Caddy)
handle /lk/* {
uri strip_prefix /lk
reverse_proxy localhost:7880
}
# Frontend SPA — serve built files with fallback to index.html
handle {
root * /path/to/Abyss/client/dist
try_files {path} /index.html
file_server
}
}