began setting up vaultwrden
This commit is contained in:
parent
7323a2256b
commit
bdecca5d15
2 changed files with 18 additions and 1 deletions
17
configs/services/vaultwarden.nix
Normal file
17
configs/services/vaultwarden.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
let port = 8080;
|
||||
in
|
||||
{
|
||||
services.vaultwarden = {
|
||||
enable = true;
|
||||
config = {
|
||||
WEBSOCKET_ENABLED = true; # Enable WebSocket notifications.
|
||||
SIGNUP_ALLOWED = false;
|
||||
ROCKET_ADDRESS = "192.168.178.51";
|
||||
DOMAIN = "http://192.168.178.51";
|
||||
ROCKET_PORT = port;
|
||||
ADMIN_TOKEN =
|
||||
};
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ port ];
|
||||
}
|
||||
|
|
@ -32,7 +32,7 @@
|
|||
networking.hostName = "testserver";
|
||||
imports = [
|
||||
./configs/container_config.nix
|
||||
./configs/services/paperless.nix
|
||||
./configs/services/vaultwarden.nix
|
||||
];
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue