Variable | Description | Required | Example |
---|---|---|---|
CYBORGDB_API_KEY | Your CyborgDB API key for authentication | ✅ | cyborg_abc123... |
CYBORGDB_DB_TYPE | Database backend type | ✅ | postgres or redis |
CYBORGDB_CONNECTION_STRING | Database connection details | ✅ | See Connection Formats |
Service Configuration
Variable | Description | Default | Example |
---|---|---|---|
PORT | Port number for the service | 8000 | 3000 |
APP_NAME | Application name for logging | CyborgDB Service | My CyborgDB Instance |
APP_VERSION | Application version | 0.11.0 | 0.11.1 |
API_VERSION | API version prefix | v1 | v2 |
Security Configuration
Variable | Description | Default | Example |
---|---|---|---|
REQUIRE_API_KEY | Whether to require API key authentication | true | false |
SSL_CERT_PATH | Path to SSL certificate file for HTTPS | None | /etc/ssl/certs/server.crt |
SSL_KEY_PATH | Path to SSL private key file for HTTPS | None | /etc/ssl/private/server.key |
SSL_CERT_PATH
and SSL_KEY_PATH
are provided and the files exist, the service automatically enables HTTPS.Database Configuration (Advanced)
Variable | Description | Default | Example |
---|---|---|---|
INDEX_LOCATION | Database type for index storage | CYBORGDB_DB_TYPE | postgres |
CONFIG_LOCATION | Database type for config storage | CYBORGDB_DB_TYPE | redis |
ITEMS_LOCATION | Database type for items storage | CYBORGDB_DB_TYPE | postgres |
INDEX_CONNECTION_STRING | Connection string for index storage | CYBORGDB_CONNECTION_STRING | See connection formats |
CONFIG_CONNECTION_STRING | Connection string for config storage | CYBORGDB_CONNECTION_STRING | See connection formats |
ITEMS_CONNECTION_STRING | Connection string for items storage | CYBORGDB_CONNECTION_STRING | See connection formats |
Database Table Names
Variable | Description | Default | Example |
---|---|---|---|
INDEX_TABLE_NAME | Table name for indexes | index | cyborgdb_indexes |
CONFIG_TABLE_NAME | Table name for configurations | config | cyborgdb_configs |
ITEMS_TABLE_NAME | Table name for items | items | cyborgdb_items |
Performance Tuning
Variable | Description | Default | Example |
---|---|---|---|
CPU_THREADS | Number of CPU threads to use | 0 (auto-detect) | 4 |
GPU_ACCELERATE | Enable GPU acceleration if available | false | true |
WORKERS | Number of worker processes for handling requests | 0 (auto-calculate) | 8 |
System Configuration
Variable | Description | Default | Example |
---|---|---|---|
KMP_DUPLICATE_LIB_OK | Allow duplicate OpenMP libraries | TRUE | FALSE |
PYTHONUNBUFFERED | Disable Python output buffering | 1 | 0 |
PostgreSQL Connection String
host
- Database server hostnameport
- Database server port (default: 5432)dbname
- Database nameuser
- Database usernamepassword
- Database passwordRedis Connection String
host
- Redis server hostnameport
- Redis server port (default: 6379)db
- Redis database number (default: 0)password
- Redis password (optional)redis://
or rediss://
) is not supported. Use the comma-separated format shown above.Development Configuration
Production Configuration
Mixed Database Configuration
-e
flag:
.env
file - Local environment file in the working directoryexport
or container environmentpostgres
and redis
are supportedMissing API Key
CYBORGDB_API_KEY
is setcyborg_
Database Connection Issues
SSL Certificate Errors