1
0

hosts/web-2: implement redirects for blog.clerie.de

This commit is contained in:
clerie 2023-03-22 22:41:33 +01:00
parent c53b3e964b
commit fd4e6aeae3
2 changed files with 20 additions and 0 deletions

19
hosts/web-2/blog.nix Normal file
View File

@ -0,0 +1,19 @@
{ ... }:
{
services.nginx.virtualHosts = {
"blog.clerie.de" = {
enableACME = true;
forceSSL = true;
locations."/" = {
return = ''301 https://clerie.de'';
};
locations."/impressum" = {
return = ''301 https://legal.clerie.de/#impressum'';
};
locations."/datenschutz" = {
return = ''301 https://legal.clerie.de/#datenschutz'';
};
};
};
}

View File

@ -4,6 +4,7 @@
imports = imports =
[ [
./hardware-configuration.nix ./hardware-configuration.nix
./blog.nix
./bubblesort.nix ./bubblesort.nix
./bula22.nix ./bula22.nix
./clerie.nix ./clerie.nix