Service Configuration

SQLALCHEMY_DATABASE_URI

The database URI that should be used for the database connection. Defaults to 'postgresql://postgres:postgres@localhost:5432/bdc'.

SQLALCHEMY_TRACK_MODIFICATIONS

Enable (True) or disable (False) signals before and after changes are committed to the database. Defaults to False.

SQLALCHEMY_ECHO

Enables or disable debug output of statements to stderr. Defaults to False.

SQLALCHEMY_ENGINE_OPTIONS

Set SQLAlchemy engine options for pooling and recycle. You may set the following environment variables to customize pooling:

  • SQLALCHEMY_ENGINE_POOL_SIZE: The pool size. Defaults to 5.

  • SQLALCHEMY_ENGINE_MAX_OVERFLOW: Max pool overflow. Defaults to 10.

  • SQLALCHEMY_ENGINE_POOL_CLASS: The pool type for management. Defaults to 10.

  • SQLALCHEMY_ENGINE_POOL_RECYCLE: Define the given number of seconds to recycle pool. Defaults to -1, or no timeout.

BDC_STAC_BASE_URL

The base URI of the service. Defaults to 'http://localhost:5000'.

This value is ignored if X-Stac-Url is present in request.headers.

BDC_STAC_FILE_ROOT

The prefix for image assets. Defaults to 'http://localhost:5001'.

This value is ignored if X-Script-Name is present in request.headers.

BDC_STAC_MAX_LIMIT

The limit of items returned in a query. Defaults to 1000 (an integer value).

BDC_AUTH_CLIENT_ID

Client ID generated by BDC-Auth. Defaults to None, that means only public collections will be returned.

BDC_AUTH_CLIENT_SECRET

Client secret generated by BDC-Auth. Defaults to None, that means only public collections will be returned.

BDC_AUTH_ACCESS_TOKEN_URL

Access token url used for retrieving user info in BDC-Auth. Defaults to None, that means only public collections will be returned.

BDC_STAC_USE_FOOTPRINT

Flag to set if Item intersection should use Item.footprint. Defaults to 0, which means to use Item.bbox.