Skip to content

Commit

Permalink
Add catalog redirect for prod.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Mar 7, 2025
1 parent 0bd9c47 commit c3cc452
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nomad/traefik-wall/deploy/bot-plugin-production.tpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ http:
challengeTmpl: /challenge.tmpl.html
# Exclude facet routes - they're an ajax request.
excludeRoutes: "/catalog/facet,/catalog/range_limit"
append-catalog-regex:
redirectRegex:
regex: /\?f(.*)
replacement: /catalog?f${1}
{{- end -}}
2 changes: 2 additions & 0 deletions nomad/traefik-wall/deploy/sites/sites-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ http:
- http
middlewares:
- captcha-protect
- append-catalog-regex
findingaids-qa:
service: findingaids-qa
rule: Header(`X-Forwarded-Host`, `findingaids-qa.princeton.edu`)
entrypoints:
- http
middlewares:
- captcha-protect
- append-catalog-regex
services:
lae-production:
loadBalancer:
Expand Down

0 comments on commit c3cc452

Please sign in to comment.