-
Notifications
You must be signed in to change notification settings - Fork 0
/
Caddyfile
45 lines (38 loc) · 1.17 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
todoauthn.com {
tls /etc/caddy/certs/todoauthn.com+2.pem /etc/caddy/certs/todoauthn.com+2-key.pem
handle {
root * /ui
try_files {path} /index.html
file_server
}
}
auth.todoauthn.com {
tls /etc/caddy/certs/todoauthn.com+2.pem /etc/caddy/certs/todoauthn.com+2-key.pem
handle {
reverse_proxy auth:443 {
header_down Access-Control-Allow-Origin https://todoauthn.com
header_down Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
header_down Access-Control-Allow-Headers "*"
}
}
}
api.todoauthn.com {
tls /etc/caddy/certs/todoauthn.com+2.pem /etc/caddy/certs/todoauthn.com+2-key.pem
handle {
reverse_proxy api:5001 {
header_down Access-Control-Allow-Origin https://todoauthn.com
header_down Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
header_down Access-Control-Allow-Headers "*"
}
}
}
swagger.todoauthn.com {
tls /etc/caddy/certs/todoauthn.com+2.pem /etc/caddy/certs/todoauthn.com+2-key.pem
# dont judge me
handle /swagger.json {
reverse_proxy api:5001
}
handle {
reverse_proxy swagger:8080
}
}