Configuration

Setting up your configuration

You can specify Jet Bridge configuration through one of the following methods: command-line arguments, config files, or environment variables. Here are examples:

Method 1. Command-line arguments

Warning: The argument's name should be lowercase. Other methods are case-insensitive

jet_bridge --database_engine=postgresql \
    --database_host=localhost \
    --database_port=5432 \
    --database_user=user \
    --database_password=password \
    --database_name=mydb

Method 2. Config file

jet.ini
[JET]
DATABASE_ENGINE=postgresql
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_NAME=mydb
DATABASE_USER=user
DATABASE_PASSWORD=password

Method 3. Environment variables

DATABASE_ENGINE=postgresql \
    DATABASE_HOST=localhost \
    DATABASE_PORT=5432 \
    DATABASE_NAME=mydb \
    DATABASE_USER=user \
    DATABASE_PASSWORD=password \
    jet_bridge

Method 4. settings.py (Django package)

# For Django package database settings are taken from 
# DATABASES['default'] setting so you don't need to specify it.
JET_JWT_VERIFY_KEY='YOUR_CUSTOM_JWT_VERIFY_KEY'

All available settings

Required settings

Optional settings

Last updated