From a6b6744c7300b5644f834b2c3850f860a761864f Mon Sep 17 00:00:00 2001 From: Zach Wolfenbarger Date: Mon, 22 Apr 2024 16:43:29 -0500 Subject: [PATCH 1/2] FEM Redirects for April 24th migration --- nginx-fem-redirects.conf | 96 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/nginx-fem-redirects.conf b/nginx-fem-redirects.conf index 934faa7..3f11c86 100644 --- a/nginx-fem-redirects.conf +++ b/nginx-fem-redirects.conf @@ -310,3 +310,99 @@ location ~* ^/projects/(?:[\w-]*?/)?bluejackets/civil-war-bluejackets/?(?:(class include /etc/nginx/proxy-security-headers.conf; } + +location ~* ^/projects/(?:[\w-]*?/)?sandiegozooglobal/wildwatch-burrowing-owl/?(?:(classify|about)(?:/.+?)?)?/?$ { + resolver 1.1.1.1; + proxy_pass $fe_project_uri; + proxy_set_header Host $fe_project_host; + + include /etc/nginx/proxy-security-headers.conf; +} + +location ~* ^/projects/(?:[\w-]*?/)?leinwc/island-critter-cam/?(?:(classify|about)(?:/.+?)?)?/?$ { + resolver 1.1.1.1; + proxy_pass $fe_project_uri; + proxy_set_header Host $fe_project_host; + + include /etc/nginx/proxy-security-headers.conf; +} + +location ~* ^/projects/(?:[\w-]*?/)?abbsta/south-coast-threatened-fauna-recovery-project/?(?:(classify|about)(?:/.+?)?)?/?$ { + resolver 1.1.1.1; + proxy_pass $fe_project_uri; + proxy_set_header Host $fe_project_host; + + include /etc/nginx/proxy-security-headers.conf; +} + +location ~* ^/projects/(?:[\w-]*?/)?forestis/cedar-creek-eyes-on-the-wild/?(?:(classify|about)(?:/.+?)?)?/?$ { + resolver 1.1.1.1; + proxy_pass $fe_project_uri; + proxy_set_header Host $fe_project_host; + + include /etc/nginx/proxy-security-headers.conf; +} + +location ~* ^/projects/(?:[\w-]*?/)?zooniverse/chicago-wildlife-watch/?(?:(classify|about)(?:/.+?)?)?/?$ { + resolver 1.1.1.1; + proxy_pass $fe_project_uri; + proxy_set_header Host $fe_project_host; + + include /etc/nginx/proxy-security-headers.conf; +} + +location ~* ^/projects/(?:[\w-]*?/)?zooniverse/wildcam-gorongosa/?(?:(classify|about)(?:/.+?)?)?/?$ { + resolver 1.1.1.1; + proxy_pass $fe_project_uri; + proxy_set_header Host $fe_project_host; + + include /etc/nginx/proxy-security-headers.conf; +} + +location ~* ^/projects/(?:[\w-]*?/)?elwest/woodpecker-cavity-cam/?(?:(classify|about)(?:/.+?)?)?/?$ { + resolver 1.1.1.1; + proxy_pass $fe_project_uri; + proxy_set_header Host $fe_project_host; + + include /etc/nginx/proxy-security-headers.conf; +} + +location ~* ^/projects/(?:[\w-]*?/)?victorav/the-koster-seafloor-observatory/?(?:(classify|about)(?:/.+?)?)?/?$ { + resolver 1.1.1.1; + proxy_pass $fe_project_uri; + proxy_set_header Host $fe_project_host; + + include /etc/nginx/proxy-security-headers.conf; +} + +location ~* ^/projects/(?:[\w-]*?/)?victorav/spyfish-aotearoa/?(?:(classify|about)(?:/.+?)?)?/?$ { + resolver 1.1.1.1; + proxy_pass $fe_project_uri; + proxy_set_header Host $fe_project_host; + + include /etc/nginx/proxy-security-headers.conf; +} + +location ~* ^/projects/(?:[\w-]*?/)?dangogh/wheres-walleye/?(?:(classify|about)(?:/.+?)?)?/?$ { + resolver 1.1.1.1; + proxy_pass $fe_project_uri; + proxy_set_header Host $fe_project_host; + + include /etc/nginx/proxy-security-headers.conf; +} + +location ~* ^/projects/(?:[\w-]*?/)?bcosentino/squirrelmapper/?(?:(classify|about)(?:/.+?)?)?/?$ { + resolver 1.1.1.1; + proxy_pass $fe_project_uri; + proxy_set_header Host $fe_project_host; + + include /etc/nginx/proxy-security-headers.conf; +} + +location ~* ^/projects/(?:[\w-]*?/)?embeller/offal-wildlife-watching/?(?:(classify|about)(?:/.+?)?)?/?$ { + resolver 1.1.1.1; + proxy_pass $fe_project_uri; + proxy_set_header Host $fe_project_host; + + include /etc/nginx/proxy-security-headers.conf; +} From 84052ea7881e664be475e86d3807c6f8d4ead94b Mon Sep 17 00:00:00 2001 From: Zach Wolfenbarger Date: Mon, 22 Apr 2024 17:09:20 -0500 Subject: [PATCH 2/2] Update nginx-fem-redirects.conf Co-authored-by: Cliff Johnson --- nginx-fem-redirects.conf | 8 -------- 1 file changed, 8 deletions(-) diff --git a/nginx-fem-redirects.conf b/nginx-fem-redirects.conf index 3f11c86..1dc8bc4 100644 --- a/nginx-fem-redirects.conf +++ b/nginx-fem-redirects.conf @@ -351,14 +351,6 @@ location ~* ^/projects/(?:[\w-]*?/)?zooniverse/chicago-wildlife-watch/?(?:(class include /etc/nginx/proxy-security-headers.conf; } -location ~* ^/projects/(?:[\w-]*?/)?zooniverse/wildcam-gorongosa/?(?:(classify|about)(?:/.+?)?)?/?$ { - resolver 1.1.1.1; - proxy_pass $fe_project_uri; - proxy_set_header Host $fe_project_host; - - include /etc/nginx/proxy-security-headers.conf; -} - location ~* ^/projects/(?:[\w-]*?/)?elwest/woodpecker-cavity-cam/?(?:(classify|about)(?:/.+?)?)?/?$ { resolver 1.1.1.1; proxy_pass $fe_project_uri;