Skip to content

Commit

Permalink
Route root asset folders to fe-content-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf committed Sep 11, 2024
1 parent 7d040a7 commit de23369
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nginx-fem-redirects.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ location ~* ^/projects/(?:_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_content_pages_uri;
proxy_set_header Host $fe_content_pages_host;

include /etc/nginx/proxy-security-headers.conf;
}
Expand Down
4 changes: 2 additions & 2 deletions nginx-fem-staging-redirects.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ location ~* ^/projects/(?:_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_content_pages_uri;
proxy_set_header Host $fe_content_pages_host;

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

0 comments on commit de23369

Please sign in to comment.