-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile
More file actions
38 lines (34 loc) · 808 Bytes
/
Copy pathCaddyfile
File metadata and controls
38 lines (34 loc) · 808 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
{
auto_https off
}
https://192.168.1.100:8443 {
tls 192.168.1.100.pem 192.168.1.100-key.pem
# Service Worker scope header
handle /build/sw.js {
header Service-Worker-Allowed /
reverse_proxy localhost:8000 {
header_up X-Forwarded-Proto https
header_up X-Forwarded-Port 8443
}
}
# WebSocket (Reverb)
handle /app/* {
reverse_proxy localhost:8080 {
transport http {
versions 1.1
}
}
}
handle /apps/* {
reverse_proxy localhost:8080 {
transport http {
versions 1.1
}
}
}
# Laravel
reverse_proxy localhost:8000 {
header_up X-Forwarded-Proto https
header_up X-Forwarded-Port 8443
}
}