From 2d9e65442ec0bdc77b574bc81eebf206858fbffc Mon Sep 17 00:00:00 2001 From: kalipso Date: Mon, 26 Jan 2026 21:13:09 +0100 Subject: [PATCH] [vaultwarden] add forward proxy through vpn --- machines/durruti/host_config.nix | 11 +++++++++++ machines/fanny/configuration.nix | 9 +++++++++ machines/vpn/configuration.nix | 9 +++++++++ 3 files changed, 29 insertions(+) diff --git a/machines/durruti/host_config.nix b/machines/durruti/host_config.nix index b4e1d0d2..229b2389 100644 --- a/machines/durruti/host_config.nix +++ b/machines/durruti/host_config.nix @@ -57,6 +57,17 @@ in }; }; + services.nginx.virtualHosts."keys.malobeo.org" = { + forceSSL = true; + enableACME= true; + locations."/" = { + proxyPass = "http://10.0.0.10"; + extraConfig = '' + ''; + }; + }; + + services.nginx.virtualHosts."grafana.malobeo.org" = { forceSSL = true; enableACME= true; diff --git a/machines/fanny/configuration.nix b/machines/fanny/configuration.nix index 7300e51f..b4781814 100644 --- a/machines/fanny/configuration.nix +++ b/machines/fanny/configuration.nix @@ -173,6 +173,15 @@ in }; }; + virtualHosts."keys.malobeo.org" = { + locations."/" = { + proxyPass = "http://10.0.0.16"; + extraConfig = '' + proxy_set_header Host $host; + ''; + }; + }; + virtualHosts."grafana.malobeo.org" = { locations."/" = { proxyPass = "http://10.0.0.14"; diff --git a/machines/vpn/configuration.nix b/machines/vpn/configuration.nix index 2eeafefa..f41fcf62 100644 --- a/machines/vpn/configuration.nix +++ b/machines/vpn/configuration.nix @@ -53,6 +53,15 @@ with lib; }; }; + virtualHosts."keys.malobeo.org" = { + locations."/" = { + proxyPass = "http://10.100.0.101"; + extraConfig = '' + proxy_set_header Host $host; + ''; + }; + }; + virtualHosts."grafana.malobeo.org" = { locations."/" = { proxyPass = "http://10.100.0.101";