Have phobos enable NGINX.
parent
17534ecfb0
commit
2a8b35c82e
|
@ -21,6 +21,10 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
programs.mosh.enable = true;
|
||||
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_15;
|
||||
|
@ -39,7 +43,6 @@ in
|
|||
requires = [ "postgresql.service" ];
|
||||
serviceConfig = {
|
||||
Environment = [
|
||||
"PORT=80"
|
||||
"DATABASE_URL=ecto://postgres:postgres@localhost/boardwise"
|
||||
];
|
||||
EnvironmentFile = "/run/secrets/SECRET_KEY_BASE";
|
||||
|
@ -56,5 +59,22 @@ in
|
|||
sops.defaultSopsFile = ./secrets.yaml;
|
||||
sops.secrets.SECRET_KEY_BASE = {};
|
||||
|
||||
security.acme.acceptTerms = true;
|
||||
security.acme.defaults.email = "jrpotter2112@gmail.com";
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts = {
|
||||
"www.boardwise.gg" = {
|
||||
# forceSSL = true;
|
||||
enableACME = true;
|
||||
serverAliases = [ "boardwise.gg" ];
|
||||
locations."/" = {
|
||||
recommendedProxySettings = true;
|
||||
proxyPass = "http://127.0.0.1:4000";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = stateVersion;
|
||||
}
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
home-manager.nixosModules.home-manager
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
deployment.targetHost = "143.110.158.6";
|
||||
|
||||
networking.hostName = "titan";
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
programs.mosh.enable = true;
|
||||
|
|
Loading…
Reference in New Issue