-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCaddyfile
More file actions
39 lines (32 loc) · 741 Bytes
/
Caddyfile
File metadata and controls
39 lines (32 loc) · 741 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
# WaveFunc Production Configuration
# Caddy automatically provisions and renews SSL certificates
# Main web application
wavefunc.live {
reverse_proxy 127.0.0.1:3000
encode gzip
log {
output file /var/log/caddy/wavefunc-access.log
format json
}
}
# Nostr relay on subdomain
relay.wavefunc.live {
reverse_proxy 127.0.0.1:3334
encode gzip
log {
output file /var/log/caddy/relay-access.log
format json
}
}
# Fallback for IP-based access (during transition or development)
:80 {
# Relay WebSocket endpoint
handle /relay/* {
reverse_proxy 127.0.0.1:3334
}
# Main web application
handle {
reverse_proxy 127.0.0.1:3000
}
encode gzip
}