Skip to content

Commit

Permalink
Merge pull request #366 from zooniverse/fem-assets-fix
Browse files Browse the repository at this point in the history
Route /_next & /assets to fe-root
  • Loading branch information
zwolf authored Sep 11, 2024
2 parents c3e280e + d304f6a commit c21a3d6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nginx-fem-redirects.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ location ~* ^/projects/(?:_next|assets)/.+?$ {
include /etc/nginx/proxy-security-headers.conf;
}

# Root app data and static files
location ~* ^/(?:_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;
}

# Zooniverse About pages, prefix match
location /about {
resolver 1.1.1.1;
Expand Down

0 comments on commit c21a3d6

Please sign in to comment.