start work on vaultwarden

This commit is contained in:
chaos 2024-12-14 12:16:38 +00:00
parent 32948dd428
commit f0ffd53925
2 changed files with 20 additions and 1 deletions

1
.envrc
View file

@ -1 +0,0 @@
use flake

View file

@ -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";
};
};
}