-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathCaddyfile
46 lines (39 loc) · 1.1 KB
/
Caddyfile
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
40
41
42
43
44
45
46
:$PORT
root * /usr/share/caddy
file_server
header {
X-Robots-Tag none
X-Content-Type-Options nosniff
X-Frame-Options DENY
Referrer-Policy no-referrer-when-downgrade
}
@websocket_v2ray_vmess {
header Connection *Upgrade*
header Upgrade websocket
path /8f91b6a0-e8ee-11ea-adc1-0242ac120002-vmess
}
reverse_proxy @websocket_v2ray_vmess unix//etc/caddy/vmess
@websocket_v2ray_vless {
header Connection *Upgrade*
header Upgrade websocket
path /8f91b6a0-e8ee-11ea-adc1-0242ac120002-vless
}
reverse_proxy @websocket_v2ray_vless unix//etc/caddy/vless
@websocket_v2ray_trojan {
header Connection *Upgrade*
header Upgrade websocket
path /8f91b6a0-e8ee-11ea-adc1-0242ac120002-trojan
}
reverse_proxy @websocket_v2ray_trojan unix//etc/caddy/trojan
@websocket_v2ray_ss {
header Connection *Upgrade*
header Upgrade websocket
path /8f91b6a0-e8ee-11ea-adc1-0242ac120002-ss
}
reverse_proxy @websocket_v2ray_ss 127.0.0.1:4234
@websocket_v2ray_socks {
header Connection *Upgrade*
header Upgrade websocket
path /8f91b6a0-e8ee-11ea-adc1-0242ac120002-socks
}
reverse_proxy @websocket_v2ray_socks 127.0.0.1:5234