-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile
More file actions
36 lines (30 loc) · 787 Bytes
/
Copy pathCaddyfile
File metadata and controls
36 lines (30 loc) · 787 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
ai-wardrobe.ru, www.ai-wardrobe.ru {
log {
output stdout
format json
}
@options method OPTIONS
handle @options {
header Access-Control-Allow-Origin "https://ai-wardrobe.ru"
header Access-Control-Allow-Methods "GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS"
header Access-Control-Allow-Headers "Content-Type,Authorization"
header Access-Control-Allow-Credentials "true"
respond 204
}
encode gzip
@api path /api/*
handle @api {
reverse_proxy localhost:4000
}
@uploads path /uploads/*
handle @uploads {
reverse_proxy localhost:4000
}
@ws path /ws/*
handle @ws {
reverse_proxy localhost:4000
}
handle {
reverse_proxy localhost:3000
}
}