add bitwarden
This commit is contained in:
parent
908c5d928d
commit
0e9e01b50c
5 changed files with 38 additions and 11 deletions
13
configs/sputnik/bitwarden.nix
Normal file
13
configs/sputnik/bitwarden.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -8,6 +8,7 @@
|
|||
./nginx.nix
|
||||
./tinc.nix
|
||||
./codimd.nix
|
||||
./bitwarden.nix
|
||||
#./syncplay.nix
|
||||
#./mail-server.nix
|
||||
|
||||
|
|
|
@ -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 = [
|
||||
{
|
||||
|
|
|
@ -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 ];
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue