From 620021dc3de4c508a491c9b2d3060f99405fc789 Mon Sep 17 00:00:00 2001 From: Zach Wolfenbarger Date: Thu, 12 Sep 2024 14:11:14 -0500 Subject: [PATCH] Also staging --- nginx-fem-staging-redirects.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nginx-fem-staging-redirects.conf b/nginx-fem-staging-redirects.conf index 1d92eca..0a22223 100644 --- a/nginx-fem-staging-redirects.conf +++ b/nginx-fem-staging-redirects.conf @@ -14,6 +14,15 @@ location /mock { include /etc/nginx/proxy-security-headers.conf; } +# Mock route, fe-root app data and static files +location ~* ^/mock/(?:_next|assets)/.+?$ { + resolver 1.1.1.1; + proxy_pass $fe_root_uri; + proxy_set_header Host $fe_root_host; + + include /etc/nginx/proxy-security-headers.conf; +} + # Project app data and static files location ~* ^/projects/(?:_next|assets)/.+?$ { resolver 1.1.1.1;