Skip to content

Kayou/proxyNodeJs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proxy

Install

npm install

Run

npm start

Configurations

There are currently 2 configurations:

A configuration file is like this:

const path = 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

Watchers

Forks

Releases

No releases published

Packages

No packages published