Redirect jankremer.eu to jankremer.de

This commit is contained in:
Jan Kremer 2026-03-26 19:01:09 +01:00
parent b5d6919c62
commit 949a8d3d9c
No known key found for this signature in database

View file

@ -3,22 +3,28 @@
"d /var/www/jankremer.de 755 jan users -"
];
services.caddy.virtualHosts."jankremer.de".extraConfig = ''
handle {
root * /var/www/jankremer.de
file_server
services.caddy.virtualHosts = {
"jankremer.de".extraConfig = ''
handle {
root * /var/www/jankremer.de
file_server
@static {
path *.css *.js *.woff2 *.woff *.ttf *.png *.jpg *.jpeg *.svg *.ico *.webp
}
header @static Cache-Control "public, max-age=31536000, immutable"
@static {
path *.css *.js *.woff2 *.woff *.ttf *.png *.jpg *.jpeg *.svg *.ico *.webp
}
header @static Cache-Control "public, max-age=31536000, immutable"
@html {
path *.html
@html {
path *.html
}
header @html Cache-Control "no-cache"
}
header @html Cache-Control "no-cache"
}
'';
'';
"jankremer.eu".extraConfig = ''
redir https://jankremer.de{uri} permanent
'';
};
networking.firewall.allowedTCPPorts = [
80