wip vault, test

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-03-10 16:40:29 -05:00
parent 2bec46813c
commit 55a61b7777

View file

@ -10,8 +10,8 @@ let
binds = [ binds = [
{ {
host = "${hostDataDir}/data"; host = "${hostDataDir}";
container = "/data?"; container = "/data";
user = config.users.users.vaultwarden.name; user = config.users.users.vaultwarden.name;
} }
]; ];
@ -53,12 +53,15 @@ in
services.vaultwarden = { services.vaultwarden = {
enable = true; enable = true;
dbBackend = "sqlite"; dbBackend = "sqlite";
backupDir = "/asd"; backupDir = "/data/backups";
config = { config = {
DOMAIN = "https://vault.joshuabell.xyz"; DOMAIN = "https://vault.joshuabell.xyz";
SIGNUPS_ALLOWED = true; SIGNUPS_ALLOWED = true;
}; };
}; };
networking.firewall.allowedTCPPorts = [
8222 # web http
];
}; };
}; };
@ -67,6 +70,8 @@ in
forceSSL = true; forceSSL = true;
locations = { locations = {
"/" = { "/" = {
proxyWebsockets = true;
proxyPass = "http://${localAddress}:8222"; # vaultwarden
}; };
}; };
}; };