Skip to content

Repository files navigation

Proxy

Install

npm install

Run

npm start

Configurations

There are currently 2 configurations:

A configuration file is like this:

constpath=require('path');module.exports={target: 'https://preprodpromise12apiapp.azurewebsites.net/',cert: path.resolve(__dirname,'../certs/Promise12.pfx')};
  • target: the remote url to proxy request to.
  • cert: the path to the certificate pfx thing.

Environment variables

  • ENV: the default mode proxies request to the preprod environment. Use ENV=production to call the prod one.
  • PASSPHRASE: if needed, the passphrase related to the pfx file.
  • PORT: the port for the proxy (default: 9000).
  • TOKEN: the token to identify client. You must pass a header named token with the matching value !

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages