configure production domains
This commit is contained in:
parent
6d328b558f
commit
3704a2800f
1 changed files with 14 additions and 2 deletions
|
|
@ -10,22 +10,34 @@
|
|||
borgPrivateKey = config.sops.secrets."borg-private-key".path;
|
||||
};
|
||||
frontend = {
|
||||
hostName = "rabbigerzi.yisroelbaum.com";
|
||||
hostName = "rabbigerzi.com";
|
||||
nginx = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
serverAliases = [ "rabbigerzi.yisroelbaum.com" ];
|
||||
};
|
||||
};
|
||||
backend = {
|
||||
hostName = "rabbigerziapi.yisroelbaum.com";
|
||||
hostName = "api.rabbigerzi.com";
|
||||
environmentFile = config.sops.secrets."rabbi-gerzi-env".path;
|
||||
corsAllowedOrigins = [
|
||||
"https://rabbigerzi.com"
|
||||
"https://rabbigerzi.yisroelbaum.com"
|
||||
];
|
||||
nginx = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
serverAliases = [ "rabbigerziapi.yisroelbaum.com" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue