43 lines
861 B
Nix
43 lines
861 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
|
|
verify.http.vaultwarden = {
|
|
url = config.services.vaultwarden.config.domain;
|
|
expectedContent = "BOOOOM"; # fixme: seems this part is not working
|
|
};
|
|
|
|
services.vaultwarden = {
|
|
enable = true;
|
|
# backupDir =
|
|
config = {
|
|
domain = "https://bitwarden.ingolf-wagner.de";
|
|
signupsAllowed = false;
|
|
rocketPort = 8222;
|
|
rocketLog = "critical";
|
|
};
|
|
};
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
virtualHosts = {
|
|
|
|
"bitwarden.ingolf-wagner.de" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
extraConfig = ''
|
|
client_max_body_size 500M;
|
|
'';
|
|
proxyPass = "http://localhost:${toString config.services.vaultwarden.config.rocketPort}";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|