From cba9797f6dc510961573caa82e3fd933a8881c61 Mon Sep 17 00:00:00 2001 From: William Moore Date: Thu, 21 Nov 2024 11:58:16 +0000 Subject: [PATCH] Move searchengine redirect under nginx_proxy_direct_locations --- ansible/group_vars/proxy-hosts.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ansible/group_vars/proxy-hosts.yml b/ansible/group_vars/proxy-hosts.yml index 717d40b7..8a6cd5dc 100644 --- a/ansible/group_vars/proxy-hosts.yml +++ b/ansible/group_vars/proxy-hosts.yml @@ -249,9 +249,6 @@ nginx_proxy_redirect_map_locations: - location: "~ ^/(mito|tara|pgpc|study)($|/)" code: 302 -- location: "~ ^/mapr/api/(?!config).*($|/)" - redirect302: /searchengine/apidocs/ - # "= /" has higher priority than "/" in the proxy config nginx_proxy_direct_locations: # TODO: change to 301 when we're happy @@ -274,6 +271,8 @@ nginx_proxy_direct_locations: alias: /srv/www/letsencrypt/challenge - location: "= /submitter-survey" redirect302: https://forms.gle/beR4vqLrgLgRzgSX9 +- location: "~ ^/mapr/api/(?!config).*($|/)" + redirect302: /searchengine/apidocs/ # CORS: basically allow any cross-site since this is public read-only