Proxy Configuration - DTS-STN/sc-digital-centre GitHub Wiki

Proxy Configuration

Proxy use

The proxy configuration is a temporary workaround to reach ECAS's test environment off network. The proxy will redirect local network traffic to SRE's servers that have been white listed with ECAS. A long term solution is currently being worked on as of August 16th 2022.

How to configure

proxystart

"npm run proxystart" will start the proxy and requires being authenticated via azure.

proxyconfig

"npm run proxyconfig" copies over required files for the application to forward its traffic.

An environment variable is required for proxyconfig http_proxy="http://localhost:3128".

npm i occasionally overwrites the modified node modules. Therefor "npm run dev" also runs proxyconfig on startup.

Browser or Network settings

ECAS requires the browser to make requests through the proxy as well. Devs can either configure their browser or all their operating system traffic to route through the proxy (Browser/Operating system specific).

Browser: Firefox manual proxy configuration

Operating System: Ubuntu manual proxy configuration