Skip to content

Commit

Permalink
Always route /projects to FEM on frontend.preview
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf committed Sep 18, 2024
1 parent 9a5f1ad commit cd7eec5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sites/frontend.preview.zooniverse.org.conf
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ server {
return 301 /projects/laac-lscp/maturity-of-baby-sounds$1$2$is_args$query_string;
}

# Use a preferential prefix to route all projects to FEM
location ^~ /projects {
resolver 1.1.1.1;
proxy_pass $fe_project_uri;
proxy_set_header Host $fe_project_host;

include /etc/nginx/proxy-security-headers.conf;
}

# fe-root staging app
location / {
resolver 1.1.1.1;
Expand Down

0 comments on commit cd7eec5

Please sign in to comment.