Skip to main content

Api microservice

Environment variables for api microservice.

General config

NameDescriptionRequiredType
SERVER_PORT
The port on which the API server will run
false
number
Default:3000

TLS config

NameDescriptionRequiredType
HTTP_PROTOCOL
Defines if the server run in secure mode with http protocol (true for secure), used for communication with out a wrapper like nginx, kube ingress, etc.
false
boolean
Default:false
CA_CERT_PATH
Path to the CA certificate file used to authenticate clients.
Example: ./certs/ca.crt
Required if:
HTTP_PROTOCOL = "true"
string
SERVER_CERT_PATH
Path to the certificate file for HTTPS server.
Example: ./certs/server.crt
Required if:
HTTP_PROTOCOL = "true"
string
SERVER_KEY_PATH
Path to the private key file for HTTPS server.
Example: ./certs/server.key
Required if:
HTTP_PROTOCOL = "true"
string