Configuration

Setting up your configuration

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

Method 1. Command line arguments

Warning: arguments 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

All available settings

Required settings

Name

Description

DATABASE_ENGINE

Database engine, one of: - postgresql - mysql - oracle - mssql - sqlite

DATABASE_HOST

Database host

DATABASE_PORT

Database port

DATABASE_USER

Database user

DATABASE_PASSWORD

Database password

DATABASE_NAME

Database name or path (SQLite)

Optional settings

Name

Default

Description

ADDRESS (optional)

0.0.0.0

Jet Bridge address

PORT (optional)

8888

Jet Bridge port

CONFIG (optional)

/etc/jet.conf

Path to config file

DEBUG (optional)

false

Run in debug mode

READ_ONLY (optional)

false

Data read only

WEB_BASE_URL (optional)

https://app.jetadmin.io

Jet Admin frontend application base URL

API_BASE_URL (optional)

https://api.jetadmin.io/api

Jet Admin API base URL

MEDIA_STORAGE (optional)

default

Media storage type

MEDIA_ROOT (optional)

media

Media root

MEDIA_BASE_URL (optional)

-- none --

Media base URL