Prepared settings

If you do not want to update application settings via API calls then you can provide the initial settings via a command line option (--settings) or environment variable (EENGINE_SETTINGS). The value must be a valid JSON string that could be used against the /settings API endpoint. The behavior is identical to calling the same thing via the API, so whatever settings are given are stored in the DB.

$ emailengine --settings='{"webhooks": "","webhookEvents":["messageNew"]}'

When using Docker Compose where environment variables are defined in YAML format, you can use the following environment variable for prepared settings:

        "webhooks": "",
        "webhookEvents": [
            "messageNew", "messageDeleted"

If settings object fails validation then the application does not start.