Skip to content

BIMData Platform Back

URLs of BIMData apps

VariablesDefault valueDescription
API_URL""BIMData API URL.
PLATFORM_URL""BIMData platform front URL.
PLATFORM_BACK_URL""BIMData platform back URL.

Database configuration

There variables are needed for the database authentication.

VariablesDefault valueDescription
DB_HOSTPostgresql server address.
DB_PORTPostgresql server port.
DB_NAMEPostgresql database name.
DB_USERPostgresql user.
DB_PASSWORDPostgresql password.

If your Postgresql cluster use read-only replicas, you can configure the API with these variables to distribute the read-only requests through all of them. Each of these variable is a comma separated list. If each replica have a different configuration, the order in each list matter: the first element REPLICA_DB_HOSTS will use the first port in REPLICA_DB_PORTS and so on.

VariablesDefault valueDescription
REPLICA_DB_HOSTSNonelist of postgresql read-only replicas server address.
REPLICA_DB_PORTSSame as DB_PORTlist of postgresql read-only replicas server port.
REPLICA_DB_NAMESSame as DB_NAMElist of postgresql read-only database name.
REPLICA_DB_USERSSame as DB_USERlist of postgresql read-only database user.
REPLICA_DB_PASSWORDSSame as DB_PASSWORDlist of postgresql read-only database user.

OpenID configuration

VariablesDefault valueDescription
IAM_URLOIDC provider address.
IAM_CLIENT_IDOIDC client ID.
IAM_CLIENT_SECRETOIDC client secret.

Email configuration

VariablesDefault valueDescription
SMTP_HOSTSMTP server address.
SMTP_PORTSMTP server port.
SMTP_USE_TLSSMTP communication use TLS.
SMTP_USERSMTP authentication user.
SMTP_PASSSMTP authentication password.
DEFAULT_FROM_EMAIL"support@bimdata.io"SMTP default from email.

Image configuration

VariablesDefault valueDescription
WORKERS4Configure Gunicorn workers.
PORT8000Configure Gunicorn listen port.
CA_CERT""Path of a certificate to add to container trusted CAs.
COMPILE_SCSS00 or 1. Configure if django compilescss during init.
COLLECT_STATIC10 or 1. Configure if django collectstatic during init.
APPLY_MIGRATION10 or 1. Configure if django migrate during init.
PROCESS_TASKS00 or 1. Configure if django process_tasks.

Other configuration

VariablesDefault valueDescription
ENV"development"
ALLOWED_HOSTS[]
DEBUGFalse
ADMIN_INTERFACEUse to be able to deploy separate admin interface.
DJANGO_SETTINGS_MODULE"platform_back.settings.platform_back"Use to be able to deploy separate admin interface.
SECRET_KEY"SET_DEVELOPMENT_DJANGO_SECRET_KEY"
WEBHOOKS_SECRET""
MASTER_TOKEN""
REQUESTS_CA_BUNDLE""