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