Skip to content

Latest commit

 

History

History

.reverse-proxy-testing

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Reverse Proxy Testing

This is for locally testing reverse-proxy configurations that map certain site areas to RC and other areas to DFE.

Requirements

  • Need RC (this app) cloned, installed, and configured (ideally to QA)
  • Need nginx. To install, run brew install nginx

Starting the reverse proxy

  1. Start RC in a terminal:
    • Run npm run dev
  2. Start nginx in a different terminal:
    • Ensure rc.conf has the correct port for RC (8080?)
    • Run ./.reverse-proxy-testing/restart-reverse-proxy.sh
  3. Visit http://localhost:8081/research/research-catalog

Restarting

After making changes to rc.conf, run:

./.reverse-proxy-testing/restart-reverse-proxy.sh

Stopping

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

Mappings

See ./rc.conf for mappings. At writing, RC responsibilities are Home, Search, and Bib Details. QA DFE will handle SHEP, Account.

Known issues

Login flow is not working at the moment due to the wrong host being passed through. Hold routes are also not configured.