2022-01-13 13:40:18 +01:00
|
|
|
{ config, pkgs, lib, ... }: {
|
2022-01-15 09:32:59 +01:00
|
|
|
services.vaultwarden = {
|
2022-01-13 13:40:18 +01:00
|
|
|
enable = true;
|
2022-01-15 09:32:59 +01:00
|
|
|
# backupDir =
|
2022-01-13 13:40:18 +01:00
|
|
|
config = {
|
|
|
|
domain = "https://bitwarden.ingolf-wagner.de";
|
|
|
|
signupsAllowed = false;
|
|
|
|
rocketPort = 8222;
|
|
|
|
rocketLog = "critical";
|
|
|
|
};
|
|
|
|
};
|
2022-01-29 19:39:57 +01:00
|
|
|
|
|
|
|
backup.dirs = [ "/var/lib/bitwarden_rs" ];
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
virtualHosts = {
|
|
|
|
|
|
|
|
"bitwarden.ingolf-wagner.de" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
locations."/" = {
|
2024-03-18 21:00:17 +01:00
|
|
|
extraConfig = ''
|
|
|
|
client_max_body_size 500M;
|
|
|
|
'';
|
2022-01-29 19:39:57 +01:00
|
|
|
proxyPass = "http://localhost:${
|
|
|
|
toString config.services.vaultwarden.config.rocketPort
|
|
|
|
}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-01-13 13:40:18 +01:00
|
|
|
}
|