properly set up nginx for bitwarden
This commit is contained in:
parent
f16f201c29
commit
adc6487ae0
1 changed files with 20 additions and 1 deletions
|
@ -9,5 +9,24 @@
|
||||||
rocketLog = "critical";
|
rocketLog = "critical";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
#backup.dirs = [ "/var/lib/bitwarden_rs" ];
|
|
||||||
|
backup.dirs = [ "/var/lib/bitwarden_rs" ];
|
||||||
|
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
virtualHosts = {
|
||||||
|
|
||||||
|
"bitwarden.ingolf-wagner.de" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:${
|
||||||
|
toString config.services.vaultwarden.config.rocketPort
|
||||||
|
}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue