This is for locally testing reverse-proxy configurations that map certain site areas to RC and other areas to DFE.
- Need RC (this app) cloned, installed, and configured (ideally to QA)
- Need nginx. To install, run
brew install nginx
- Start RC in a terminal:
- Run
npm run dev
- Run
- Start nginx in a different terminal:
- Ensure
rc.conf
has the correct port for RC (8080?) - Run
./.reverse-proxy-testing/restart-reverse-proxy.sh
- Ensure
- Visit
http://localhost:8081/research/research-catalog
After making changes to rc.conf
, run:
./.reverse-proxy-testing/restart-reverse-proxy.sh
Nginx will continue to listen for requests to localhost:8081
until you stop it. It's harmless, but if you want the port back:
nginx -s stop
See ./rc.conf for mappings. At writing, RC responsibilities are Home, Search, and Bib Details. QA DFE will handle SHEP, Account.
Login flow is not working at the moment due to the wrong host being passed through. Hold routes are also not configured.