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