Search…
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
1
jet_bridge --database_engine=postgresql \
2
--database_host=localhost \
3
--database_port=5432 \
4
--database_user=user \
5
--database_password=password \
6
--database_name=mydb
Copied!

Method 2. Config file

jet.ini
1
[JET]
2
DATABASE_ENGINE=postgresql
3
DATABASE_HOST=localhost
4
DATABASE_PORT=5432
5
DATABASE_NAME=mydb
6
DATABASE_USER=user
7
DATABASE_PASSWORD=password
Copied!

Method 3. Environment variables

1
DATABASE_ENGINE=postgresql \
2
DATABASE_HOST=localhost \
3
DATABASE_PORT=5432 \
4
DATABASE_NAME=mydb \
5
DATABASE_USER=user \
6
DATABASE_PASSWORD=password \
7
jet_bridge
Copied!

All available settings

Required settings

Name
Description
DATABASE_ENGINE
Database engine, one of: postgresql mysql oracle mssql+pyodbc sqlite
none
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
BASE_URL (optional)
https://example.com/
Jet Bridge base URL
WEB_BASE_URL (optional)
Jet Admin frontend application base URL
API_BASE_URL (optional)
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
COOKIE_SAMESITE (optional)
None
Cookie Samesite attribute
COOKIE_SECURE (optional)
true
Is host with HTTPS
COOKIE_DOMAIN (optional)
-- none --
Cookie domain
COOKIE_COMPRESS (optional)
false
GZIP cookies that may be large in size
THREADS (optional)
number of CPUs
Number of threads Jet Bridge will create to serve requests
Last modified 6mo ago