mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 21:41:57 +00:00
47 lines
712 B
Caddyfile
47 lines
712 B
Caddyfile
{
|
|
admin off
|
|
order cache before rewrite
|
|
}
|
|
|
|
(site) {
|
|
@landing {
|
|
path / /contact* /about*
|
|
cache {
|
|
ttl 86400s
|
|
}
|
|
}
|
|
handle /_app/* {
|
|
cache {
|
|
ttl 86400s
|
|
}
|
|
reverse_proxy site:3000
|
|
}
|
|
handle @landing {
|
|
reverse_proxy site:3000 {
|
|
health_uri /health
|
|
health_interval 30s
|
|
health_timeout 10s
|
|
health_status 200
|
|
}
|
|
}
|
|
handle /repo* {
|
|
cache {
|
|
ttl 86400s
|
|
}
|
|
uri strip_prefix /repo
|
|
reverse_proxy repo-placeholder:80
|
|
}
|
|
}
|
|
|
|
:80 {
|
|
import site
|
|
}
|
|
|
|
http://am-d-model.eu {
|
|
import site
|
|
}
|
|
|
|
am-d-model.eu {
|
|
import site
|
|
}
|