Caddy: combine common site settings
This commit is contained in:
parent
9b1601baca
commit
a0a78b926e
1 changed files with 17 additions and 22 deletions
|
@ -2,23 +2,27 @@
|
||||||
order umami first
|
order umami first
|
||||||
}
|
}
|
||||||
|
|
||||||
korhonen.cc, *.korhonen.cc {
|
(common_site_settings) {
|
||||||
tls {$CLOUDFLARE_EMAIL} {
|
encode zstd gzip
|
||||||
|
|
||||||
|
tls {
|
||||||
dns cloudflare {$CLOUDFLARE_API_TOKEN}
|
dns cloudflare {$CLOUDFLARE_API_TOKEN}
|
||||||
resolvers 1.1.1.1
|
resolvers 1.1.1.1
|
||||||
}
|
}
|
||||||
|
|
||||||
encode zstd gzip
|
header {
|
||||||
|
Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
korhonen.cc, *.korhonen.cc {
|
||||||
|
import common_site_settings
|
||||||
|
|
||||||
@static {
|
@static {
|
||||||
file
|
file
|
||||||
path *.ico *.css *.js *.gif *.webp *.avif *.jpg *.jpeg *.png *.svg *.woff *.woff2 *.pdf *.webmanifest
|
path *.ico *.css *.js *.gif *.webp *.avif *.jpg *.jpeg *.png *.svg *.woff *.woff2 *.pdf *.webmanifest
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
|
||||||
Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
|
|
||||||
}
|
|
||||||
|
|
||||||
@homepage-www-redir host www.korhonen.cc
|
@homepage-www-redir host www.korhonen.cc
|
||||||
handle @homepage-www-redir {
|
handle @homepage-www-redir {
|
||||||
redir https://korhonen.cc
|
redir https://korhonen.cc
|
||||||
|
@ -187,16 +191,7 @@ korhonen.cc, *.korhonen.cc {
|
||||||
}
|
}
|
||||||
|
|
||||||
korhonen.social, *.korhonen.social {
|
korhonen.social, *.korhonen.social {
|
||||||
tls {$CLOUDFLARE_EMAIL} {
|
import common_site_settings
|
||||||
dns cloudflare {$CLOUDFLARE_API_TOKEN}
|
|
||||||
resolvers 1.1.1.1
|
|
||||||
}
|
|
||||||
|
|
||||||
encode zstd gzip
|
|
||||||
|
|
||||||
header {
|
|
||||||
Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
|
|
||||||
}
|
|
||||||
|
|
||||||
@firefish-www-redir host www.korhonen.social
|
@firefish-www-redir host www.korhonen.social
|
||||||
handle @firefish-www-redir {
|
handle @firefish-www-redir {
|
||||||
|
|
Loading…
Reference in a new issue