-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCaddyfile
29 lines (26 loc) · 948 Bytes
/
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
0.0.0.0:80, 0.0.0.0:443 {
gzip
ext .html
log stdout
root /home/www
tls {
dns cloudflare
}
header / {
Access-Control-Allow-Origin *
Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization"
Access-Control-Allow-Methods "GET,PUT,POST,DELETE,PATCH,OPTIONS"
}
header /api Access-Control-Allow-Origin *
header /api Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization"
header /api Access-Control-Allow-Methods "GET,PUT,POST,DELETE,PATCH,OPTIONS"
proxy /api prest:3000 {
without /api
}
header /auth Access-Control-Allow-Origin *
header /auth Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization"
header /auth Access-Control-Allow-Methods "GET,PUT,POST,DELETE,PATCH,OPTIONS"
proxy /auth auth:4000 {
without /auth
}
}