vault-warden reverse proxy
This commit is contained in:
parent
28f4be1bfa
commit
4e6b0d093a
|
@ -4,11 +4,24 @@
|
||||||
services.vaultwarden = {
|
services.vaultwarden = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
domain = "https://vault.sincerity.network:8443";
|
domain = "https://vault.sincerity.network";
|
||||||
signupsAllowed = false;
|
signupsAllowed = false;
|
||||||
rocketPort = 8222;
|
rocketPort = 3011;
|
||||||
rocketLog = "critical";
|
rocketLog = "critical";
|
||||||
};
|
};
|
||||||
dbBackend = "sqlite";
|
dbBackend = "sqlite";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.nginx = {
|
||||||
|
virtualHosts."vault.sincerity.network" = {
|
||||||
|
useACMEHost = "sincerity.network";
|
||||||
|
forceSSL = true;
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 128M;
|
||||||
|
'';
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:3011";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue