From de23369d5ab522da45c731f6399b708a1f34e4e6 Mon Sep 17 00:00:00 2001 From: Zach Wolfenbarger Date: Wed, 11 Sep 2024 18:58:10 -0500 Subject: [PATCH] Route root asset folders to fe-content-pages --- nginx-fem-redirects.conf | 4 ++-- nginx-fem-staging-redirects.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nginx-fem-redirects.conf b/nginx-fem-redirects.conf index e56116d..f23990a 100644 --- a/nginx-fem-redirects.conf +++ b/nginx-fem-redirects.conf @@ -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; } diff --git a/nginx-fem-staging-redirects.conf b/nginx-fem-staging-redirects.conf index e327069..4d63685 100644 --- a/nginx-fem-staging-redirects.conf +++ b/nginx-fem-staging-redirects.conf @@ -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; }