port main blog domain to mb1, redirect .net to .dev

This commit is contained in:
Cyryl Płotnicki 2023-08-12 21:20:37 +01:00
parent 47bea6e3d6
commit 6f42b89b9a

View file

@ -6,14 +6,18 @@ in
imports = [ ../nginx.nix ];
services.nginx = {
virtualHosts = {
"blog.cyplo.net" = {
"blog.cyplo.dev" = {
forceSSL = true;
enableACME = true;
locations."/" = {
root = path;
index = "index.html";
};
};
"blog.cyplo.net" = {
forceSSL = true;
enableACME = true;
globalRedirect = "blog.cyplo.dev";
};
};
};