add bitwarden

This commit is contained in:
Ingolf Wagner 2021-08-05 09:01:39 +02:00
parent 908c5d928d
commit 0e9e01b50c
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
5 changed files with 38 additions and 11 deletions

View file

@ -0,0 +1,13 @@
{ config, pkgs, lib, ... }: {
services.bitwarden_rs = {
enable = true;
config = {
domain = "https://bitwarden.ingolf-wagner.de";
#signupsAllowed = true;
signupsAllowed = false;
rocketPort = 8222;
rocketLog = "critical";
};
};
}

View file

@ -8,6 +8,7 @@
./nginx.nix
./tinc.nix
./codimd.nix
./bitwarden.nix
#./syncplay.nix
#./mail-server.nix

View file

@ -39,6 +39,29 @@ in {
recommendedProxySettings = true;
virtualHosts = {
"bitwarden.ingolf-wagner.de" = {
listen = [
{
addr = "0.0.0.0";
port = 4443;
ssl = true;
}
{
addr = "0.0.0.0";
port = 80;
ssl = false;
}
];
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:${
toString config.services.bitwarden_rs.config.rocketPort
}";
};
};
"git.ingolf-wagner.de" = {
listen = [
{

View file

@ -1,10 +0,0 @@
{ config, lib, pkgs, ... }: {
services.bitwarden_rs = {
enable = true;
backupDir = "/home/bitwarden_backups";
config = { signupsAllowed = true; };
};
backup.dirs = [ config.services.bitwarden_rs.backupDir ];
}

View file

@ -27,7 +27,7 @@ in {
services.elasticsearch = {
enable = true;
listenAddress = "${config.networking.hostName}.private";
extraJavaOptions = ["-Des.http.cname_in_publish_address=true"];
extraJavaOptions = [ "-Des.http.cname_in_publish_address=true" ];
};
services.graylog.enable = true;