mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-09-28 21:48:57 +02:00
Updated Proxy examples (markdown)
parent
32908341b5
commit
7cb2e0a852
1 changed files with 9 additions and 18 deletions
|
@ -412,14 +412,12 @@ Example NixOS nginx config. For more Information about NixOS Deployment see [Dep
|
||||||
```nix
|
```nix
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
security.acme.acceptTerms = true;
|
security.acme = {
|
||||||
security.acme.email = "me@example.com";
|
defaults = {
|
||||||
security.acme.certs = {
|
acceptTerms = true;
|
||||||
|
email = "me@example.com";
|
||||||
"vw.example.com" = {
|
|
||||||
group = "vaultwarden";
|
|
||||||
keyType = "rsa2048";
|
|
||||||
};
|
};
|
||||||
|
certs."vaultwarden.example.com".group = "vaultwarden";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
@ -431,21 +429,14 @@ Example NixOS nginx config. For more Information about NixOS Deployment see [Dep
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
|
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"vw.example.com" = {
|
"vaultwarden.example.com" = {
|
||||||
forceSSL = true;
|
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:8812"; #changed the default rocket port due to some conflict
|
proxyPass = "http://localhost:8080";
|
||||||
proxyWebsockets = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# remove the notification location blocks on vaultwarden 1.29+
|
|
||||||
locations."/notifications/hub" = {
|
locations."/notifications/hub" = {
|
||||||
proxyPass = "http://localhost:3012";
|
proxyPass = "http://localhost:8080";
|
||||||
proxyWebsockets = true;
|
|
||||||
};
|
|
||||||
locations."/notifications/hub/negotiate" = {
|
|
||||||
proxyPass = "http://localhost:8812";
|
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue