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 ]; imports = [ ../nginx.nix ];
services.nginx = { services.nginx = {
virtualHosts = { virtualHosts = {
"blog.cyplo.net" = { "blog.cyplo.dev" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
root = path; root = path;
index = "index.html";
}; };
}; };
"blog.cyplo.net" = {
forceSSL = true;
enableACME = true;
globalRedirect = "blog.cyplo.dev";
};
}; };
}; };