Web-app Configuration#

We starlette’s config module for configuration, so you can configure the app by setting environment variables for the configuration keys, or by creating a .env in the current directory. Please refer to starlette’s config documentation for more information.

Configuration keys#

Name

Description

DEBUG

Enables debug mode (defaults to false).

Please refer to starlette’s exceptions documentation for more information.

APP_HOST

Sets the application host name (defaults to 127.0.0.1).

APP_PORT

Sets the application HTTP port name (defaults to 8000).

APP_URL

Sets the application URL (defaults to http://127.0.0.1:8000).

DB_URL

Sets the database connection URL (defaults to postgresql://postgres:example@localhost/greenhouse).

Please refer to SQLAlchemy’s database URLs documentation for more information.