hosts/web-2: implement redirects for blog.clerie.de
This commit is contained in:
parent
c53b3e964b
commit
fd4e6aeae3
19
hosts/web-2/blog.nix
Normal file
19
hosts/web-2/blog.nix
Normal 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'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -4,6 +4,7 @@
|
||||
imports =
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
./blog.nix
|
||||
./bubblesort.nix
|
||||
./bula22.nix
|
||||
./clerie.nix
|
||||
|
Loading…
Reference in New Issue
Block a user