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
|
||||||
|
@ -51,11 +55,11 @@ korhonen.cc, *.korhonen.cc {
|
||||||
@index host index.korhonen.cc
|
@index host index.korhonen.cc
|
||||||
handle @index {
|
handle @index {
|
||||||
umami {
|
umami {
|
||||||
event_endpoint "https://umami.korhonen.cc/api/send"
|
event_endpoint "https://umami.korhonen.cc/api/send"
|
||||||
website_uuid "9fe4f5c0-8e63-4479-a58d-d399cdbc0a3a"
|
website_uuid "9fe4f5c0-8e63-4479-a58d-d399cdbc0a3a"
|
||||||
client_ip_header X-Real-IP
|
client_ip_header X-Real-IP
|
||||||
device_detection
|
device_detection
|
||||||
allowed_extensions "" .tar.zst .json .html
|
allowed_extensions "" .tar.zst .json .html
|
||||||
}
|
}
|
||||||
root * /var/www/index.korhonen.cc
|
root * /var/www/index.korhonen.cc
|
||||||
file_server browse
|
file_server browse
|
||||||
|
@ -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