From db0b32abe9c1fbf1e275041046f05dba03f94c41 Mon Sep 17 00:00:00 2001 From: noe Date: Sun, 21 Apr 2024 11:34:19 -0400 Subject: [PATCH] proxy: split media proxy out --- nixos/hosts/ingress-proxy/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/hosts/ingress-proxy/default.nix b/nixos/hosts/ingress-proxy/default.nix index 46d07d3..757d991 100644 --- a/nixos/hosts/ingress-proxy/default.nix +++ b/nixos/hosts/ingress-proxy/default.nix @@ -138,7 +138,9 @@ in { proxy_request_buffering off; ''; }; + } // defaultConfig // { forceSSL = false; }; + "media.sapphic.engineer" = rec { locations."/proxy" = { recommendedProxySettings = true; proxyPass = "http://se"; @@ -157,6 +159,7 @@ in { proxy_cache_use_stale error timeout invalid_header updating; ''; }; + locations."/media" = locations."/proxy"; } // defaultConfig // { forceSSL = false; }; }; };