2024-08-29 03:26:04 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2024-09-22 01:21:25 +02:00
|
|
|
|
2024-09-30 05:05:17 +02:00
|
|
|
healthchecks.http.vaultwarden = {
|
2024-09-22 01:21:25 +02:00
|
|
|
url = config.services.vaultwarden.config.domain;
|
2024-10-02 10:49:05 +02:00
|
|
|
expectedContent = "Vaultwarden Web";
|
2024-09-22 01:21:25 +02:00
|
|
|
};
|
|
|
|
|
2023-12-09 17:15:50 +01:00
|
|
|
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."/" = {
|
2024-04-23 14:30:01 +02:00
|
|
|
extraConfig = ''
|
|
|
|
client_max_body_size 500M;
|
|
|
|
'';
|
2024-08-29 03:26:04 +02:00
|
|
|
proxyPass = "http://localhost:${toString config.services.vaultwarden.config.rocketPort}";
|
2023-12-09 17:15:50 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|