Oz API Configuration
The configuration settings are contained in theconfig.py file.
Initial Configuration
These parameters are mandatory. Please note: if you require the Instant API mode (with no data saved anywhere), set OZ_APP_COMPONENTS=stateless. Otherwise, to save data for orders and analyses, set OZ_APP_COMPONENTS=auth,stateful,oz_collections, where:
authis an authentication module,statefulis a module for full API,oz_collectionsis a module for the blacklist analysis (remove if you don't use it).
# application components list
OZ_APP_COMPONENTS=auth,stateful,oz_collections
# enable local storage support
OZ_LOCAL_STORAGE_SUPPORT_ENABLE=false
# tfss service host
OZ_SERVICE_TFSS_HOST=http://xxx.xxx.xxx.xxx:xxxx
# allowed hosts
APP_ALLOWED_HOSTS=example-host1.com,example-host2.com
# secret key
OZ_API_SECRET_KEY=long_secret_keyPostgres Connection
This is needed only if you use the full API version.
Path to Media Files
All incoming media files are saved in the local directory mounted to one of possible endpoints depending of the installation method:
host server or Docker container:
/opt/gateway/staticin case of standalone installer:
/var/lib/docker/volumes/api_oz-api-static-vol/_dataany path specified via configuration
In most of the integration cases, the media files can be accessed in web using the direct links to randomly generated filenames.
To access the media, you need to specify in the configuration file their external host name or IP address, port, and connection protocol.
Connection to Oz Bio / Liveness
Timing and Limits
Last updated
Was this helpful?
