2024-08-31 02:15:09 +00:00
|
|
|
{ lib, config, ... }:
|
2024-08-25 15:02:35 +00:00
|
|
|
{
|
2024-08-12 13:23:46 +00:00
|
|
|
services.vaultwarden = {
|
|
|
|
enable = true;
|
|
|
|
environmentFile = config.sops.secrets."vaultwarden/environment".path;
|
|
|
|
config = {
|
|
|
|
DOMAIN = "https://vault.ny4.dev";
|
|
|
|
IP_HEADER = "X-Forwarded-For";
|
|
|
|
ROCKET_ADDRESS = "127.0.0.1";
|
|
|
|
ROCKET_PORT = 9500;
|
|
|
|
|
|
|
|
EMERGENCY_ACCESS_ALLOWED = false;
|
|
|
|
SENDS_ALLOWED = false;
|
|
|
|
SIGNUPS_ALLOWED = false;
|
|
|
|
ORG_CREATION_USERS = "none";
|
|
|
|
};
|
|
|
|
};
|
2024-08-31 02:15:09 +00:00
|
|
|
|
|
|
|
services.caddy.settings.apps.http.servers.srv0.routes = lib.singleton {
|
|
|
|
match = lib.singleton {
|
|
|
|
host = [ "vault.ny4.dev" ];
|
|
|
|
};
|
|
|
|
handle = lib.singleton {
|
|
|
|
handler = "reverse_proxy";
|
|
|
|
upstreams = [ { dial = "localhost:9500"; } ];
|
|
|
|
};
|
|
|
|
};
|
2024-08-12 13:23:46 +00:00
|
|
|
}
|