Skip to content

Commit

Permalink
Route /_next & /assets to fe-root
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf committed Sep 11, 2024
1 parent c3e280e commit d304f6a
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 d304f6a

Please sign in to comment.