feat(eientei): enable vaultwarden
This commit is contained in:
parent
02ed937123
commit
1c6b3267d8
27
spec/eientei/vaultwarden.nix
Normal file
27
spec/eientei/vaultwarden.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
services.vaultwarden = {
|
||||||
|
enable = true;
|
||||||
|
environmentFile = "/nix/persist/service/vaultwarden/secret.env";
|
||||||
|
config = {
|
||||||
|
domain = "https://vault.514fpv.io:2096";
|
||||||
|
signupsAllowed = true;
|
||||||
|
rocketAddress = "127.0.0.1";
|
||||||
|
rocketPort = 8222;
|
||||||
|
rocketLog = "critical";
|
||||||
|
databaseUrl = "postgresql:///vaultwarden";
|
||||||
|
};
|
||||||
|
dbBackend = "postgresql";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."vault.514fpv.io" = {
|
||||||
|
useACMEHost = ".514fpv.io";
|
||||||
|
addSSL = true;
|
||||||
|
locations."/".proxyPass = "http://127.0.0.1:8222";
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.persistence."/nix/persist/fhs".directories = [
|
||||||
|
"/var/lib/bitwarden_rs"
|
||||||
|
];
|
||||||
|
|
||||||
|
global.fs.zfs.mountpoints."/nix/persist/service/vaultwarden" = "service/vaultwarden";
|
||||||
|
}
|
Loading…
Reference in a new issue