-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCaddyfile
48 lines (41 loc) · 893 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
email {env.ACME_EMAIL}
acme_ca https://acme-v02.api.letsencrypt.org/directory
on_demand_tls {
# https://caddyserver.com/on-demand-tls
# https://caddyserver.com/docs/automatic-https#on-demand-tls
# https://caddyserver.com/docs/json/apps/tls/automation/on_demand/permission/http/
ask http://zippd-backend:8080/sites/permission
}
}
:80 {
redir https://{host}{uri} permanent
}
zippd.app:443 {
reverse_proxy zippd-landing-page:3000
}
auth.zippd.app:443 {
reverse_proxy fief-server:8000
}
api.zippd.app:443 {
reverse_proxy zippd-backend:8080
}
dashboard.zippd.app:443 {
reverse_proxy zippd-dashboard:3000
}
*.zippd.site:443 {
tls {
dns porkbun {
api_key {env.PORKBUN_API_KEY}
api_secret_key {env.PORKBUN_API_SECRET_KEY}
}
resolvers 1.1.1.1
}
reverse_proxy zippd-static-server:8080
}
https:// {
tls {
on_demand
}
reverse_proxy zippd-static-server:8080
}