Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add route for /mock #369

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions nginx-fem-redirects.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ set $fe_project_host "fe-project.zooniverse.org";
set $fe_content_pages_host "fe-content-pages.zooniverse.org";
set $fe_root_host "fe-root.zooniverse.org";

# Mock route to test per-path query param caching
location /mock {
resolver 1.1.1.1;
proxy_pass $fe_root_uri;
proxy_set_header Host $fe_root_host;

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

# Project app data and static files
location ~* ^/projects/(?:_next|assets)/.+?$ {
resolver 1.1.1.1;
Expand Down
9 changes: 9 additions & 0 deletions nginx-fem-staging-redirects.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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";

# Mock route to test per-path query param caching
location /mock {
resolver 1.1.1.1;
proxy_pass $fe_root_uri;
proxy_set_header Host $fe_root_host;

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

# Project app data and static files
location ~* ^/projects/(?:_next|assets)/.+?$ {
resolver 1.1.1.1;
Expand Down