Skip to content

Commit

Permalink
Merge pull request #345 from zooniverse/fix-nginx-config
Browse files Browse the repository at this point in the history
Fix broken nginx config
  • Loading branch information
zwolf authored Apr 18, 2024
2 parents ffdf3f4 + 5183482 commit 08291c7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions nginx-fem-staging-redirects.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
set $fe_project_uri "https://fe-project.preview.zooniverse.org";
set $fe_content_pages_uri "https://fe-content-pages.preview.zooniverse.org";
set $fe-root_uri "https://fe-root.preview.zooniverse.org";
set $fe_root_uri "https://fe-root.preview.zooniverse.org";
set $fe_project_host "fe-project.preview.zooniverse.org";
set $fe_content_pages_host "fe-content-pages.preview.zooniverse.org";
set $fe-root_host "fe-root.preview.zooniverse.org";
set $fe_root_host "fe-root.preview.zooniverse.org";

# Project app data and static files
location ~* ^/projects/(?:_next|assets)/.+?$ {
Expand All @@ -26,8 +26,8 @@ location ~* ^/about/(?:_next|assets)/.+?$ {
# 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;
proxy_pass $fe_root_uri;
proxy_set_header Host $fe_root_host;

include /etc/nginx/proxy-security-headers.conf;
}
Expand Down Expand Up @@ -80,17 +80,17 @@ location ~* ^/projects/(?:[\w-]*?/)?[\w-]*/[\w-]+/(?:(classify|about)(?:/.+?)?)?
# FEM Root app routes for users pages (optional trailing slash)
location ~* ^/users/[\w-]+/?$ {
resolver 1.1.1.1;
proxy_pass $fe-root_uri;
proxy_set_header Host $fe-root_host;
proxy_pass $fe_root_uri;
proxy_set_header Host $fe_root_host;

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

# FEM Root app routes for user groups pages (optional trailing slash)
location ~* ^/groups/[\w-]+/?$ {
resolver 1.1.1.1;
proxy_pass $fe-root_uri;
proxy_set_header Host $fe-root_host;
proxy_pass $fe_root_uri;
proxy_set_header Host $fe_root_host;

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

0 comments on commit 08291c7

Please sign in to comment.