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 -" "d /var/www/jankremer.de 755 jan users -"
]; ];
services.caddy.virtualHosts."jankremer.de".extraConfig = '' services.caddy.virtualHosts = {
handle { "jankremer.de".extraConfig = ''
root * /var/www/jankremer.de handle {
file_server root * /var/www/jankremer.de
file_server
@static { @static {
path *.css *.js *.woff2 *.woff *.ttf *.png *.jpg *.jpeg *.svg *.ico *.webp path *.css *.js *.woff2 *.woff *.ttf *.png *.jpg *.jpeg *.svg *.ico *.webp
} }
header @static Cache-Control "public, max-age=31536000, immutable" header @static Cache-Control "public, max-age=31536000, immutable"
@html { @html {
path *.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 = [ networking.firewall.allowedTCPPorts = [
80 80