This commit is contained in:
hackens server 2023-01-12 18:39:33 +01:00
parent 0ac470c493
commit f7337345f4
2 changed files with 4 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
security.acme = { security.acme = {
email = "hackens@clipper.ens.fr"; defaults.email = "hackens@clipper.ens.fr";
acceptTerms = true; acceptTerms = true;
}; };
@ -20,6 +20,7 @@
environmentFile = "/etc/secrets/vaultwarden.env"; environmentFile = "/etc/secrets/vaultwarden.env";
}; };
services.nginx.enable = true;
services.nginx.virtualHosts."pass.new.hackens.org" = { services.nginx.virtualHosts."pass.new.hackens.org" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
@ -36,4 +37,5 @@
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
networking.firewall.allowedTCPPorts = [ 80 443 ];
} }

View file

@ -1,4 +1,5 @@
{ ... }: { ... }:
{ {
imports = [ <agenix/modules/age.nix> ];
age.secrets."wikiOpenID".file = ./wiki-openID.age; age.secrets."wikiOpenID".file = ./wiki-openID.age;
} }