@4me/b2b.gateway
Required variables
B2B_CERT (required)
B2B Certificate file
Example:
B2B_CERT=b2b.cert
ENVIRONMENT_SERVER_URL (required)
Where the environment-server can be reached
Example:
ENVIRONMENT_SERVER_URL=http://environment-server:3000/
Optional variables
PORT
Port the application the will run on
Example:
PORT=4000
Default value:
3000
LOG_PRETTY
Enable/disable human readable logs. JSON logs will be produced otherwise.
Example:
LOG_PRETTY=1
Default value:
process.env.NODE_ENV === 'development'
LOG_LEVEL
Change the log level. Possible values are fatal, error, warn, info, debug or trace.
Example:
LOG_LEVEL=trace
Default value:
process.env.NODE_ENV === 'development' ? 'debug' : 'info'
B2B_CERT_FORMAT
Format of the B2B certificate file (pem or pfx)
Example:
B2B_CERT_FORMAT=pem
Default value:
pfx
B2B_CERT_KEY
Private key of the B2B certificate (when pem format is used)
Example:
B2B_CERT_KEY=/my/path/private_key.pem
B2B_CERT_PASSPHRASE
B2B Certificate passphrase (when pfx format is used)
Example:
B2B_CERT_PASSPHRASE=p4ssw0rd!
B2B_FLAVOUR
B2B Flavour (OPS or PREOPS)
Example:
B2B_FLAVOUR=PREOPS
Default value:
OPS
XSD_PATH
Where the B2B XSD/WSDL are/will be stored on the disk
Example:
XSD_PATH=/my/custom/path
Default value:
/tmp/b2b-xsd
B2B_REQUEST_TIMEOUT
How long to wait for responses from the B2B API before giving up (in seconds).
Example:
B2B_REQUEST_TIMEOUT=30
Default value:
15