use frontend redirect hosts

This commit is contained in:
Yisroel Baum 2026-08-17 23:55:01 +03:00
parent a5fb2143dc
commit cbfae24c91
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -11,6 +11,7 @@
};
frontend = {
hostName = "rabbigerzi.com";
redirectHostNames = [ "www.rabbigerzi.com" ];
nginx = {
forceSSL = true;
enableACME = true;
@ -32,12 +33,6 @@
};
};
services.nginx.virtualHosts."www.rabbigerzi.com" = {
forceSSL = true;
enableACME = true;
globalRedirect = "rabbigerzi.com";
};
sops.secrets."rabbi-gerzi-env" = {
sopsFile = ./secrets/rabbi-gerzi.env;
format = "dotenv";