From 7cb2e0a852fbd56b0a7eb43cd5cc181e8f44d670 Mon Sep 17 00:00:00 2001 From: Sandro Date: Tue, 7 Nov 2023 16:31:53 +0100 Subject: [PATCH] Updated Proxy examples (markdown) --- Proxy-examples.md | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/Proxy-examples.md b/Proxy-examples.md index 5c03575..edb6e82 100644 --- a/Proxy-examples.md +++ b/Proxy-examples.md @@ -412,14 +412,12 @@ Example NixOS nginx config. For more Information about NixOS Deployment see [Dep ```nix { config, ... }: { - security.acme.acceptTerms = true; - security.acme.email = "me@example.com"; - security.acme.certs = { - - "vw.example.com" = { - group = "vaultwarden"; - keyType = "rsa2048"; + security.acme = { + defaults = { + acceptTerms = true; + email = "me@example.com"; }; + certs."vaultwarden.example.com".group = "vaultwarden"; }; services.nginx = { @@ -431,21 +429,14 @@ Example NixOS nginx config. For more Information about NixOS Deployment see [Dep recommendedTlsSettings = true; virtualHosts = { - "vw.example.com" = { - forceSSL = true; + "vaultwarden.example.com" = { enableACME = true; + forceSSL = true; locations."/" = { - proxyPass = "http://localhost:8812"; #changed the default rocket port due to some conflict - proxyWebsockets = true; + proxyPass = "http://localhost:8080"; }; - - # remove the notification location blocks on vaultwarden 1.29+ locations."/notifications/hub" = { - proxyPass = "http://localhost:3012"; - proxyWebsockets = true; - }; - locations."/notifications/hub/negotiate" = { - proxyPass = "http://localhost:8812"; + proxyPass = "http://localhost:8080"; proxyWebsockets = true; }; };