sincerity.network/nixos/vault-warden.nix

28 lines
526 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
services.vaultwarden = {
enable = true;
config = {
2022-10-03 01:17:07 -07:00
domain = "https://vault.sincerity.network";
signupsAllowed = false;
2022-10-03 01:17:07 -07:00
rocketPort = 3011;
rocketLog = "critical";
};
dbBackend = "sqlite";
};
2022-10-03 01:17:07 -07:00
services.nginx = {
virtualHosts."vault.sincerity.network" = {
2022-10-03 01:18:18 -07:00
useACME = true;
2022-10-03 01:17:07 -07:00
forceSSL = true;
extraConfig = ''
client_max_body_size 128M;
'';
locations."/" = {
proxyPass = "http://localhost:3011";
};
};
};
}