Skip to content

Commit

Permalink
Move searchengine redirect under nginx_proxy_direct_locations
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Nov 21, 2024
1 parent 8a5d41c commit cba9797
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ansible/group_vars/proxy-hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit cba9797

Please sign in to comment.