start work on vaultwarden
This commit is contained in:
parent
32948dd428
commit
f0ffd53925
20
hosts/hetzner-arm/profiles/vaultwarden.nix
Normal file
20
hosts/hetzner-arm/profiles/vaultwarden.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue