Infini-SERVER: setup vaultwarden
This commit is contained in:
parent
503428c744
commit
0983318065
4 changed files with 31 additions and 0 deletions
|
@ -42,6 +42,7 @@
|
|||
"/var/log"
|
||||
"/var/lib/systemd/coredump"
|
||||
"/var/lib/tailscale"
|
||||
"/var/lib/bitwarden_rs"
|
||||
|
||||
"/srv"
|
||||
];
|
||||
|
@ -61,6 +62,8 @@
|
|||
age.secrets."inx.moe.pem".group = "nginx";
|
||||
age.secrets."inx.moe.key".owner = "nginx";
|
||||
age.secrets."inx.moe.key".group = "nginx";
|
||||
age.secrets."vaultwarden".owner = "vaultwarden";
|
||||
age.secrets."vaultwarden".group = "vaultwarden";
|
||||
|
||||
services = {
|
||||
nginx =
|
||||
|
@ -95,6 +98,27 @@
|
|||
proxyPass = "http://localhost:8000";
|
||||
};
|
||||
};
|
||||
"bitwarden.inx.moe" = ssl // {
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${toString config.services.vaultwarden.config.ROCKET_PORT}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
vaultwarden = {
|
||||
enable = true;
|
||||
environmentFile = config.secrets."vaultwarden";
|
||||
config = {
|
||||
DOMAIN = "https://bitwarden.inx.moe";
|
||||
SIGNUPS_ALLOWED = false;
|
||||
|
||||
ROCKET_ADDRESS = "localhost";
|
||||
ROCKET_PORT = 8222;
|
||||
ROCKET_LOG = "critical";
|
||||
|
||||
PUSH_ENABLED = true;
|
||||
PUSH_RELAY_URI = "https://push.bitwarden.com";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -53,6 +53,12 @@ in
|
|||
neededForBoot = true;
|
||||
};
|
||||
|
||||
"/persist/var/lib/bitwarden_rs" = lib.mkIf (data != null) {
|
||||
device = data;
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=root/var/lib/bitwarden_rs" ] ++ commonOptions;
|
||||
};
|
||||
|
||||
"/nix" = {
|
||||
device = main;
|
||||
fsType = "btrfs";
|
||||
|
|
|
@ -22,4 +22,5 @@ in
|
|||
"binary-cache-private-key.age".publicKeys = allKeys;
|
||||
"inx.moe.pem.age".publicKeys = allKeys;
|
||||
"inx.moe.key.age".publicKeys = allKeys;
|
||||
"vaultwarden.age".publicKeys = allKeys;
|
||||
}
|
||||
|
|
BIN
secrets/vaultwarden.age
Normal file
BIN
secrets/vaultwarden.age
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue