ohmyform-api/doc/environment.md
2021-05-02 14:25:46 +02:00

1.7 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
DATABASE_DRIVER sqlite database driver, either sqlite or postgres
DATABASE_URL sqlite://data.sqlite url in the format TYPE://USER:PASS@HOST:PORT/NAME?EXTRA (read more)
DATABASE_TABLE_PREFIX empty prefix all tables if used within same database as other applications.
DATABASE_LOGGING false if true all db interactions will be logged to stdout
DATABASE_MIGRATE true can be used in load balanced environments to only allow one container to perform migrations / manually execute migrations
DATABASE_SSL false if true will require ssl database connection