mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 21:41:57 +00:00
Test of rearranged caddyfile (not sure if it hoists)
This commit is contained in:
@@ -6,39 +6,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
(site) {
|
|
||||||
@landing {
|
|
||||||
path / /contact* /about* /favicon.png
|
|
||||||
}
|
|
||||||
handle /_app/* {
|
|
||||||
reverse_proxy site:3000
|
|
||||||
}
|
|
||||||
handle @landing {
|
|
||||||
reverse_proxy site:3000 {
|
|
||||||
health_uri /health
|
|
||||||
health_interval 30s
|
|
||||||
health_timeout 10s
|
|
||||||
health_status 200
|
|
||||||
}
|
|
||||||
}
|
|
||||||
handle /repo* {
|
|
||||||
uri strip_prefix /repo
|
|
||||||
import repo_site
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
:80 {
|
|
||||||
import site
|
|
||||||
}
|
|
||||||
|
|
||||||
http://am-d-model.eu {
|
|
||||||
import site
|
|
||||||
}
|
|
||||||
|
|
||||||
am-d-model.eu {
|
|
||||||
import site
|
|
||||||
}
|
|
||||||
|
|
||||||
# Repo config
|
# Repo config
|
||||||
(repo_cors) {
|
(repo_cors) {
|
||||||
header {
|
header {
|
||||||
@@ -108,3 +75,37 @@ am-d-model.eu {
|
|||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Main site config
|
||||||
|
(site) {
|
||||||
|
@landing {
|
||||||
|
path / /contact* /about* /favicon.png
|
||||||
|
}
|
||||||
|
handle /_app/* {
|
||||||
|
reverse_proxy site:3000
|
||||||
|
}
|
||||||
|
handle @landing {
|
||||||
|
reverse_proxy site:3000 {
|
||||||
|
health_uri /health
|
||||||
|
health_interval 30s
|
||||||
|
health_timeout 10s
|
||||||
|
health_status 200
|
||||||
|
}
|
||||||
|
}
|
||||||
|
handle /repo* {
|
||||||
|
uri strip_prefix /repo
|
||||||
|
import repo_site
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
:80 {
|
||||||
|
import site
|
||||||
|
}
|
||||||
|
|
||||||
|
http://am-d-model.eu {
|
||||||
|
import site
|
||||||
|
}
|
||||||
|
|
||||||
|
am-d-model.eu {
|
||||||
|
import site
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user