Advanced configuration
Supported environment variables
ACCESS_TOKEN_SECRET
- Description: The variable specifies secret that will be used for generating the access token
- Default:
"secret1"
LOG_LEVEL
- Description: The variable specifies the level of logging logs by the logger available options:
"error"
,"warn"
,"help"
,"info"
,"debug"
,"verbose"
,"silly"
- Default:
"debug"
REQUEST_LOGGER_FORMAT:
- Description: All requests are logged so the DevOps can check if the request comes from a user or other service (we use morgan library to log information). We created our format to display information but fill free to use one of build-in morgan library available options:
"combined"
,"common"
,"dev"
,"short"
,"tiny"
- Default:
":remote-addr :method :url :status :response-time ms - req-body :body - api-key :apiKey - authorization :authorization"
REQUEST_BODY_KEYS_TO_HIDE
- Description: We don't want to look at our users' private data so by default we hide some common properties. If you want to cheng that please provide your string with words you want to hide separated witch coma
,
- Default:
"password,token,accessToken,accessKey,authorization"