-
Notifications
You must be signed in to change notification settings - Fork 2
Environment Variables
Robin | DeepRobin edited this page Dec 10, 2018
·
2 revisions
You can set environment variables by setting it before your npm start
Example:
$ PORT=80 TRUST_PROXY="false" npm startPORT (number) default: 3000
The environment variable defines, which the port for the webserver is.
TRUST_PROXY (string) default: "false"
The environment variable TRUST_PROXY defines whether you should trust the proxy. If you like to use a reverse proxy like nginx, you should set this to "true"
DB_PATH (string) default: "PROJECT-DIR/data"
The environment variable DB_PATH defines, where the database and logs are saved