Skip to main content

Trubudget Email Service

Environment Variables

Env Variable nameRequiredDefault ValueDescription
API_HOSTnolocalhostHots/IP address of the API service.
API_PORTno8080Port of the API service. Value is a port with minimal value 0 and maximal value 65535
API_PROTOCOLnohttpProtocol of the API service.
PORTno8888The port used to expose the excel-export service. Value is a port with minimal value 0 and maximal value 65535
ACCESS_CONTROL_ALLOW_ORIGINno*Since the export service uses CORS, the domain by which it can be called needs to be set. Setting this value to `` means that it can be called from any domain. Read more about this topic here.
RATE_LIMITno-Defines the limit each IP to RATE_LIMIT requests per windowMs (1 minute)
NODE_ENVnoproduction-
LOG_LEVELnoinfoDefines the log output.
CI_COMMIT_SHAno-Defines the CI_COMMIT_SHA property returned by the version endpoint.
BUILDTIMESTAMPno-Defines the BUILDTIMESTAMP property returned by the version endpoint.

JWT_SECRET

The JWT_SECRET is shared between Trubudget's blockchain api and email-service. The endpoints of the email-service can only be used by providing a valid JWT_TOKEN signed with this JWT_SECRET. Since the blockchain is using the notification endpoints and the ui is using the user endpoints the secret has to be shared.