init
This commit is contained in:
commit
3ab713a5b3
64 changed files with 2043 additions and 0 deletions
20
hosts/abacus/vaultwarden.nix
Normal file
20
hosts/abacus/vaultwarden.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{config, ...}: let
|
||||
inherit (config.networking) domain;
|
||||
in {
|
||||
services.vaultwarden = {
|
||||
enable = true;
|
||||
|
||||
config = {
|
||||
SIGNUPS_ALLOWED = false;
|
||||
ROCKET_ADDRESS = "127.0.0.1";
|
||||
ROCKET_PORT = 8000;
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."vault.${domain}" = {
|
||||
locations."/".proxyPass = "http://${config.services.vaultwarden.config.ROCKET_ADDRESS}:${builtins.toString config.services.vaultwarden.config.ROCKET_PORT}";
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
quic = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue