Skip to content

Commit

Permalink
Move example FEM project redirect above /projects prefix matcher (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf authored Sep 16, 2024
1 parent 7bfd2fa commit 9c92d31
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions nginx-pfe-staging-redirects.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}

0 comments on commit 9c92d31

Please sign in to comment.