Infini-SERVER: move vaultwarden to Infini-OPTIPLEX
This commit is contained in:
parent
2644b4f90f
commit
ac3951b605
3 changed files with 3 additions and 3 deletions
|
@ -2,6 +2,8 @@
|
|||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./filesystems.nix
|
||||
|
||||
./vaultwarden.nix
|
||||
];
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
|
|
35
hosts/Infini-OPTIPLEX/vaultwarden.nix
Normal file
35
hosts/Infini-OPTIPLEX/vaultwarden.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
persist.directories = [ config.services.vaultwarden.config.DATA_FOLDER ];
|
||||
|
||||
services.nginx.virtualHosts."bitwarden.inx.moe" = config.common.nginx.ssl // {
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.vaultwarden.config.ROCKET_PORT}";
|
||||
};
|
||||
};
|
||||
|
||||
services.vaultwarden = {
|
||||
enable = true;
|
||||
environmentFile = config.secrets."vaultwarden";
|
||||
config = {
|
||||
DOMAIN = "https://bitwarden.inx.moe";
|
||||
SIGNUPS_ALLOWED = false;
|
||||
|
||||
DATA_FOLDER = "/srv/vaultwarden";
|
||||
|
||||
ROCKET_ADDRESS = "127.0.0.1";
|
||||
ROCKET_PORT = 8222;
|
||||
ROCKET_LOG = "critical";
|
||||
|
||||
PUSH_ENABLED = true;
|
||||
PUSH_RELAY_URI = "https://push.bitwarden.com";
|
||||
|
||||
SMTP_HOST = "smtp.purelymail.com";
|
||||
SMTP_FROM = "noreply@inx.moe";
|
||||
SMTP_PORT = 465;
|
||||
SMTP_SECURITY = "force_tls";
|
||||
SMTP_USERNAME = "noreply@inx.moe";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue