ohmyform-api/doc/environment.md
2021-05-02 12:43:54 +02:00

1.5 KiB

Environment Variables

Name Default Value Description
DISABLE_INSTALLATION_METRICS not set Per default installations are publishing their existence
SECRET_KEY changeMe JWT Secret for authentication
CLI automatically activates pretty print for log output
NODE_ENV production
HIDE_CONTRIB false decide if backlings to ohmyform should be added
SIGNUP_DISABLED false if users can sign up
LOGIN_NOTE not set Info box on top of login screen

Mailing

Name Default Value Description
MAILER_URI smtp://localhost:1025 Mail Connection
MAILER_FROM OhMyForm <no-reply@localhost> Default From path, make sure that your mail server supports the given from addres

Database Variables

Name Default Value Description
DB_URI sqlite://data.sqlite url in the format TYPE://USER:PASS@HOST:PORT/NAME?EXTRA (read more)
DB_TABLE_PREFIX empty prefix all tables if used within same database as other applications.
DB_LOGGING false if true all db interactions will be logged to stdout
DB_MIGRATE true can be used in load balanced environments to only allow one container to perform migrations / manually execute migrations