sincerity.network/nixos/vault-warden.nix
Anish Lakhwara 0b5679cea4 use acme
2022-10-03 18:18:18 +10:00

28 lines
526 B
Nix

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