Redirect jankremer.eu to jankremer.de
This commit is contained in:
parent
b5d6919c62
commit
949a8d3d9c
1 changed files with 19 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue