Skip to content

Commit 0089aaa

Browse files
committed
chore(caddy): update le configs
1 parent bc81a3a commit 0089aaa

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

config/caddy/Caddyfile

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,22 @@
4040
http://localhost:4208 {
4141
import globals
4242

43-
handle {
44-
root * ./pages/parking.lorebooks.wiki
45-
encode gzip
46-
try_files {path} /index.html
47-
file_server
48-
}
43+
root * ./pages/parking.lorebooks.wiki
44+
root /failover ./pages/failover.lairland.is-a.dev
45+
encode gzip
46+
try_files {path} /index.html
47+
file_server
4948
}
5049

5150
# By default, we serve the parking page for all domains that are not explicitly handled.
5251
# To prevent abuse, we have an API service that checks if the domain is registered with
5352
# us before doing the TLS certificate issue request behind the scenes.
5453
https:// {
55-
tls {
56-
on_demand
57-
}
54+
tls {
55+
on_demand
56+
}
5857

59-
handle {
58+
handle {
6059
root * ./pages/parking.lorebooks.wiki
6160
encode gzip
6261
try_files {path} /index.html
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# For debugging purposes only
2+
http://localhost:4208 {
3+
header {
4+
Server "proxyparty.recaptime.dev (Caddy)"
5+
X-Powered-By "proxyparty.recaptime.dev (Caddy)"
6+
}
7+
root * ./pages/parking.lorebooks.wiki
8+
root /failover ./pages/failover.lairland.is-a.dev
9+
encode gzip
10+
try_files {path} /index.html
11+
file_server
12+
}

0 commit comments

Comments
 (0)