Environment variables and arguments
December 2, 2022 ยท View on GitHub
Catapulte can be configured using CLI arguments or environment variables.
Those arguments/variables can be seen by running catapulte with --help.
Server relative
LOGis the level of log used to trace the application, default toINFO.HOSTis where the server will listen to, default to0.0.0.0in container otherwiselocalhostPORTis the port on white the server will listen to, default to3000
Template relative
TEMPLATE__TYPEdefines the type of provider used by this instance.localis the only option for now.
When the provider local is used
TEMPLATE__PATHis the path where the templates will be loaded. In the container, the default is/templatesotherwise it's./templates.
MRML relative
RENDER__KEEP_COMMENTSis a flag defining if MRML should keep the comments.RENDER__SOCIAL_ICON_ORIGINis the base URL to load the social icons formj-social-element. It's the default MRML value (https://www.mailjet.com/images/theme/v1/icons/ico-social/).
SMTP relative
SMTP__HOSTNAMEis the hostname of the SMTP server (defaultlocalhost)SMTP__PORTis the port of the SMTP server (default25)SMTP__USERNAMEis the username used to authenticate with the SMTP serverSMTP__PASSWORDis the password used to authenticate with the SMTP serverSMTP__MAX_POOL_SIZEis the max number of connection to the SMTP server (default10)SMTP__TLS_ENABLEDenables TLS secure connection to the SMTP server (defaultfalse)SMTP__ACCEPT_INVALID_CERTallow the smtp client to accept invalid certificates (defaultfalse)