diff --git a/nginx-pfe-staging-redirects.conf b/nginx-pfe-staging-redirects.conf index 06f0f72..585474f 100644 --- a/nginx-pfe-staging-redirects.conf +++ b/nginx-pfe-staging-redirects.conf @@ -34,6 +34,15 @@ location ~* ^/users/[\w-]+/((collections|favorites|message)?)/?$ { include /etc/nginx/az-proxy-headers.conf; } +# Example FEM project redirect +location ~* ^/projects/(?:[\w-]*?/)?brooke/i-fancy-cats/?(?:(classify|about)(?:/.+?)?)?/?$ { + resolver 1.1.1.1; + proxy_pass "https://fe-project.preview.zooniverse.org"; + proxy_set_header Host fe-project.preview.zooniverse.org; + + include /etc/nginx/proxy-security-headers.conf; +} + # Default: /project/* to PFE # Can be overridden by directives in nginx-project-redirects.conf location ~* ^/projects { @@ -73,12 +82,3 @@ location /unsubscribe { include /etc/nginx/az-proxy-headers.conf; } - -# Example FEM project redirect -location ~* ^/projects/(?:[\w-]*?/)?brooke/i-fancy-cats/?(?:(classify|about)(?:/.+?)?)?/?$ { - resolver 1.1.1.1; - proxy_pass "https://fe-project.preview.zooniverse.org"; - proxy_set_header Host fe-project.preview.zooniverse.org; - - include /etc/nginx/proxy-security-headers.conf; -}