Run the platform · Keep it running
Settings reference
Every setting of the .env file and the command line tools.
Settings live in the .env file in the application folder, or in the environment of the server. The setup wizard writes the ones that are needed. Restart the application after a change.
#Settings
| Name | Default | Meaning |
|---|---|---|
APP_URL | The public address of the site, with https://. | |
APP_KEY | created by the wizard | Secret key, at least 32 characters. Never change it on a running site. |
PORT | 4000 | The port the application listens on. cPanel sets this by itself. |
CORS_ORIGINS | APP_URL | Other addresses allowed to call the API from a browser, separated by commas. |
DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD | The database connection. | |
DB_POOL_MAX | 10 | The most database connections kept open. Lower it if your host allows only a few. |
AUTO_MIGRATE | off | on applies database updates at every start. The Docker image uses this. |
SETUP_TOKEN | A secret word the setup wizard asks for. | |
UPDATE_RESTART | auto | What happens after an update from the admin panel. auto restarts on cPanel and under pm2, exit always stops the application so that your process manager starts it again, manual leaves the restart to you. |
WORKERS | on | Background work inside this process. Leave it on. |
MAIL_DRIVER, MAIL_HOST, MAIL_PORT, MAIL_SECURE, MAIL_USER, MAIL_PASSWORD, MAIL_FROM | log | SMTP from the environment (MAIL_DRIVER=smtp). The Email page in the admin panel takes priority. |
META_APP_ID, META_APP_SECRET, META_WEBHOOK_VERIFY_TOKEN, META_SIGNUP_CONFIG_ID, META_INSTAGRAM_APP_ID, META_INSTAGRAM_APP_SECRET | Your Meta app. Normally set on Admin → Meta app instead; a value saved there wins. | |
META_GRAPH_VERSION | v21.0 | The Graph API version used for Meta calls. |
STORAGE_PATH | storage | Folder for uploads, relative to apps/api or an absolute path. |
API_RATE_LIMIT | 300 | Requests per minute on the app's API, counted per signed-in user (per IP address for requests made before signing in). |
AUTH_RATE_LIMIT | 10 | Sign-in, sign-up and password reset attempts per minute per IP address. |
HTTP_ALLOW_PRIVATE_NETWORK | false | Lets automations and webhooks call addresses inside your own network. Leave it off on a public service. |
LOG_LEVEL | info | error, warn, info or debug. |
#Command line
Nothing here is needed for a normal installation, but these commands exist when you have a terminal:
npm start # start the application
npm run migrate # apply database updates
npm run create-admin -- --email [email protected] --password "at-least-8-chars"
npm run seed:demo # add a demo workspace ([email protected] / demo-pass-123)