diff --git a/hosts/web-2/configuration.nix b/hosts/web-2/configuration.nix index 496ba28..1dec5da 100644 --- a/hosts/web-2/configuration.nix +++ b/hosts/web-2/configuration.nix @@ -9,6 +9,7 @@ ./gitea.nix ./ip.nix ./meow.nix + ./milchinsel.nix ./public.nix ./radicale.nix ./znc.nix diff --git a/hosts/web-2/milchinsel.nix b/hosts/web-2/milchinsel.nix new file mode 100644 index 0000000..d182709 --- /dev/null +++ b/hosts/web-2/milchinsel.nix @@ -0,0 +1,22 @@ +{ ... }: + +{ + services.nginx.virtualHosts = { + "www.milchinsel.de" = { + enableACME = true; + forceSSL = true; + locations."/" = { + return = "301 https://milchinsel.de$request_uri"; + }; + }; + + "milchinsel.de" = { + enableACME = true; + forceSSL = true; + root = fetchGit { + url = "https://git.clerie.de/clerie/milchinsel.de.git"; + rev = "8ca6727902fb5a2581b56c4b3ab8d01585f3acb0"; + }; + }; + }; +}