Skip to content

Environment Variables

Robin | DeepRobin edited this page Dec 10, 2018 · 2 revisions

Environment Variables

How can i set environment variables?

You can set environment variables by setting it before your npm start

Example:

$ PORT=80 TRUST_PROXY="false" npm start

List of all environment variables for deep-shortener

PORT (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