mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-23 05:51:57 +00:00
Added caddy caching
This commit is contained in:
@@ -1,12 +1,19 @@
|
|||||||
{
|
{
|
||||||
admin off
|
admin off
|
||||||
|
order cache before rewrite
|
||||||
}
|
}
|
||||||
|
|
||||||
(site) {
|
(site) {
|
||||||
@landing {
|
@landing {
|
||||||
path / /contact* /about*
|
path / /contact* /about*
|
||||||
|
cache {
|
||||||
|
ttl 86400s
|
||||||
|
}
|
||||||
}
|
}
|
||||||
handle /_app/* {
|
handle /_app/* {
|
||||||
|
cache {
|
||||||
|
ttl 86400s
|
||||||
|
}
|
||||||
reverse_proxy site:3000
|
reverse_proxy site:3000
|
||||||
}
|
}
|
||||||
handle @landing {
|
handle @landing {
|
||||||
@@ -18,6 +25,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
handle /repo* {
|
handle /repo* {
|
||||||
|
cache {
|
||||||
|
ttl 86400s
|
||||||
|
}
|
||||||
uri strip_prefix /repo
|
uri strip_prefix /repo
|
||||||
reverse_proxy repo-placeholder:80
|
reverse_proxy repo-placeholder:80
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user