initial server config
This commit is contained in:
commit
8f6d63909a
10 changed files with 313 additions and 0 deletions
22
services/vaultwarden.nix
Normal file
22
services/vaultwarden.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.vaultwarden = {
|
||||
enable = true;
|
||||
config = {
|
||||
DOMAIN = "https://passwords.danielk.me";
|
||||
SIGNUPS_ALLOWED = false;
|
||||
|
||||
ROCKET_ADDRESS = "127.0.0.1";
|
||||
ROCKET_PORT = 8222;
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."passwords.danielk.me" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy 127.0.0.1:8222
|
||||
'';
|
||||
};
|
||||
|
||||
# environment.persistence."/persistent".directories = [ "/var/lib/bitwarden_rs" ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue