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;
|
borgPrivateKey = config.sops.secrets."borg-private-key".path;
|
||||||
};
|
};
|
||||||
frontend = {
|
frontend = {
|
||||||
hostName = "rabbigerzi.yisroelbaum.com";
|
hostName = "rabbigerzi.com";
|
||||||
nginx = {
|
nginx = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
serverAliases = [ "rabbigerzi.yisroelbaum.com" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
backend = {
|
backend = {
|
||||||
hostName = "rabbigerziapi.yisroelbaum.com";
|
hostName = "api.rabbigerzi.com";
|
||||||
environmentFile = config.sops.secrets."rabbi-gerzi-env".path;
|
environmentFile = config.sops.secrets."rabbi-gerzi-env".path;
|
||||||
|
corsAllowedOrigins = [
|
||||||
|
"https://rabbigerzi.com"
|
||||||
|
"https://rabbigerzi.yisroelbaum.com"
|
||||||
|
];
|
||||||
nginx = {
|
nginx = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = 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" = {
|
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