Former-commit-id: c5420f8d3a
This commit is contained in:
Hadi
2024-06-23 17:52:19 +02:00
parent 8eaa78bf4b
commit d943b85cc9
30 changed files with 50 additions and 74 deletions

View File

@@ -0,0 +1,22 @@
# Password manager
let
hostname = "vault.anotherhadi.com";
url = "https://" + hostname;
port = 8222;
in {
services.vaultwarden = {
enable = true;
config = {
DOMAIN = url;
SIGNUPS_ALLOWED = false;
ROCKET_ADDRESS = "127.0.0.1";
ROCKET_PORT = port;
ROCKET_LOG = "critical";
};
};
services.nginx.virtualHosts.${hostname} = {
enableACME = true;
locations."/" = { proxyPass = "http://127.0.0.1:${toString port}"; };
};
networking.firewall.allowedTCPPorts = [ port ];
}