rice/hosts/ami/bitwarden.nix

29 lines
597 B
Nix
Raw Permalink Normal View History

2024-01-25 15:54:05 +00:00
{config, ...}: let
port = 12224;
in {
age.secrets.bitwarden.file = ../../secrets/bitwarden.age;
services = {
vaultwarden = {
enable = true;
environmentFile = config.age.secrets.bitwarden.path;
config = {
domain = "https://bitwarden.buffet.sh/";
signupsAllowed = false;
rocketPort = port;
};
};
nginx = {
virtualHosts."bitwarden.buffet.sh" = {
useACMEHost = "buffet.sh";
2024-01-25 15:54:05 +00:00
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:${toString port}";
};
};
};
};
}