diff --git a/nginx-fem-redirects.conf b/nginx-fem-redirects.conf index c898fee..24aa393 100644 --- a/nginx-fem-redirects.conf +++ b/nginx-fem-redirects.conf @@ -6,7 +6,16 @@ set $fe_content_pages_host "fe-content-pages.zooniverse.org"; set $fe_root_host "fe-root.zooniverse.org"; # Mock route to test per-path query param caching -location /mock { +location /mock { + resolver 1.1.1.1; + proxy_pass $fe_root_uri; + proxy_set_header Host $fe_root_host; + + 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; 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;