Reiseblog mit CMS
This commit is contained in:
commit
7f820a6478
19 changed files with 600 additions and 0 deletions
17
deploy/Caddyfile
Normal file
17
deploy/Caddyfile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# /etc/caddy/Caddyfile
|
||||
# Statische Auslieferung mit automatischem HTTPS (Let's Encrypt).
|
||||
|
||||
www.sattelfest.org {
|
||||
root * /srv/sattelfest/dist
|
||||
file_server
|
||||
encode gzip zstd
|
||||
|
||||
# Fotos dürfen lange im Browser-Cache bleiben.
|
||||
@photos path /photos/*
|
||||
header @photos Cache-Control "public, max-age=2592000"
|
||||
}
|
||||
|
||||
# Ohne "www" auf "www" weiterleiten.
|
||||
sattelfest.org {
|
||||
redir https://www.sattelfest.org{uri} permanent
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue