From e356bdb781bbe5ea4d3e4da81d088c8d0453b8d1 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sat, 3 Feb 2024 18:30:36 -0800 Subject: [PATCH] added prefix removal --- hosts/Alaska/modules/nginx.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/Alaska/modules/nginx.nix b/hosts/Alaska/modules/nginx.nix index 47b34cb..8ce6a36 100644 --- a/hosts/Alaska/modules/nginx.nix +++ b/hosts/Alaska/modules/nginx.nix @@ -44,8 +44,11 @@ "/" = { root = "/Aurora/StaticSites/iot"; }; - "/turn_computer_on" = { - proxyPass = "http://10.0.184/turn_computer_on"; + "/groovy_green_machine" = { + proxyPass = "http://10.0.184/"; + extraConfig = '' + rewrite ^/groovy_green_machine(/.*)$ $1 break; + ''; }; }; };