From f0ffd5392564e25a29b518a7a0877c78029e4984 Mon Sep 17 00:00:00 2001 From: chaos Date: Sat, 14 Dec 2024 12:16:38 +0000 Subject: [PATCH] start work on vaultwarden --- .envrc | 1 - hosts/hetzner-arm/profiles/vaultwarden.nix | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) delete mode 100644 .envrc create mode 100644 hosts/hetzner-arm/profiles/vaultwarden.nix diff --git a/.envrc b/.envrc deleted file mode 100644 index 3550a30..0000000 --- a/.envrc +++ /dev/null @@ -1 +0,0 @@ -use flake diff --git a/hosts/hetzner-arm/profiles/vaultwarden.nix b/hosts/hetzner-arm/profiles/vaultwarden.nix new file mode 100644 index 0000000..ac6d7ab --- /dev/null +++ b/hosts/hetzner-arm/profiles/vaultwarden.nix @@ -0,0 +1,20 @@ +{pkgs, ...}: { + services.vaultwarden = { + enable = true; + backupDir = "/var/backup/vaultwarden"; + environmentFile = "/var/lib/vaultwarden.env"; + config = { + DOMAIN = "https://vaultwarden.owo.monster"; + ROCKET_ADDRESS = "127.0.0.1"; + ROCKET_PORT = 8222; + }; + }; + + services.nginx.virtualHosts."vaultwarden.owo.monster" = { + forceSSL = true; + enableACME = true; + locations = { + "/".proxyPass = "http://127.0.0.1:8222"; + }; + }; +}