2024-10-15 17:46:44 -04:00
|
|
|
{ config, ... }:
|
2024-10-09 03:36:08 -04:00
|
|
|
{
|
2024-10-07 11:42:34 -04:00
|
|
|
imports = [
|
|
|
|
./nginx
|
|
|
|
];
|
|
|
|
|
|
|
|
services.vaultwarden = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
2024-10-24 23:42:09 -04:00
|
|
|
DOMAIN = "https://warden.${config.domains.jim1}";
|
2024-10-07 11:42:34 -04:00
|
|
|
SIGNUPS_ALLOWED = false;
|
|
|
|
ROCKET_ADDRESS = "127.0.0.1";
|
|
|
|
ROCKET_PORT = 8222;
|
|
|
|
ROCKET_LOG = "critical";
|
|
|
|
|
|
|
|
# Smtp email
|
2024-10-24 23:42:09 -04:00
|
|
|
SMTP_HOST = "mx.${config.domains.jim1}";
|
|
|
|
SMTP_FROM = "noreply@${config.domains.jim1}";
|
2024-10-07 11:42:34 -04:00
|
|
|
SMTP_FROM_NAME = "Vaultwarden";
|
2024-10-24 23:42:09 -04:00
|
|
|
SMTP_USERNAME = "noreply@${config.domains.jim1}";
|
2024-10-15 17:46:44 -04:00
|
|
|
SMTP_PASSWORD = config.secrets.noreplyPassword;
|
2024-10-07 11:42:34 -04:00
|
|
|
SMTP_SECURITY = "starttls";
|
|
|
|
SMTP_PORT = 587;
|
|
|
|
SMTP_TIMEOUT = 15;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|