2024-08-30 01:17:50 -04:00
|
|
|
{outputs, ...}: {
|
2024-08-26 13:07:59 -04:00
|
|
|
services = {
|
|
|
|
vaultwarden = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
2024-08-30 01:17:50 -04:00
|
|
|
DOMAIN = "https://warden.${outputs.secrets.jimDomain}";
|
2024-08-26 13:07:59 -04:00
|
|
|
SIGNUPS_ALLOWED = false;
|
|
|
|
ROCKET_ADDRESS = "127.0.0.1";
|
|
|
|
ROCKET_PORT = 8222;
|
|
|
|
ROCKET_LOG = "critical";
|
2024-08-24 22:16:51 -04:00
|
|
|
|
2024-08-26 13:07:59 -04:00
|
|
|
# Smtp email
|
2024-08-30 01:17:50 -04:00
|
|
|
SMTP_HOST = "mx.${outputs.secrets.jimDomain}";
|
|
|
|
SMTP_FROM = "Jimbo's Vaultwarden <noreply@${outputs.secrets.jimDomain}>";
|
2024-08-26 13:07:59 -04:00
|
|
|
SMTP_FROM_NAME = "Vaultwarden";
|
2024-08-30 01:17:50 -04:00
|
|
|
SMTP_USERNAME = "noreply@${outputs.secrets.jimDomain}";
|
|
|
|
SMTP_PASSWORD = outputs.secrets.noreplyPassword;
|
2024-08-26 13:07:59 -04:00
|
|
|
SMTP_SECURITY = "starttls";
|
|
|
|
SMTP_PORT = 587;
|
|
|
|
SMTP_TIMEOUT = 15;
|
|
|
|
};
|
|
|
|
};
|
2024-08-30 01:17:50 -04:00
|
|
|
nginx.virtualHosts."warden.${outputs.secrets.jimDomain}" = {
|
2024-08-26 13:07:59 -04:00
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://127.0.0.1:8222";
|
|
|
|
proxyWebsockets = true;
|
|
|
|
};
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|