use frontend redirect hosts
This commit is contained in:
parent
a5fb2143dc
commit
cbfae24c91
1 changed files with 1 additions and 6 deletions
|
|
@ -11,6 +11,7 @@
|
||||||
};
|
};
|
||||||
frontend = {
|
frontend = {
|
||||||
hostName = "rabbigerzi.com";
|
hostName = "rabbigerzi.com";
|
||||||
|
redirectHostNames = [ "www.rabbigerzi.com" ];
|
||||||
nginx = {
|
nginx = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = 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" = {
|
sops.secrets."rabbi-gerzi-env" = {
|
||||||
sopsFile = ./secrets/rabbi-gerzi.env;
|
sopsFile = ./secrets/rabbi-gerzi.env;
|
||||||
format = "dotenv";
|
format = "dotenv";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue