Skip to content

Engine Configuration Reference ​

Complete reference of all configuration keys and environment variables supported by the Niksphere Engine.

insider 2026-10-02 JSON ↗

IMPORTANT

If db_host or db_port is set, db_driver must be "postgres".

IMPORTANT

http_base_url defaults to http://localhost:<http_port> when empty.

HTTP & Server Settings ​

Configuration KeyEnvironment VariableTypeDefault ValueDescription
http_base_urlNIKSPHERE_ENGINE_HTTP_BASE_URLstring""Public base URL used to construct absolute links returned by the Engine. Defaults to http://localhost:<http_port> when left empty.
http_portNIKSPHERE_ENGINE_HTTP_PORTstring3000TCP port the Engine's HTTP server listens on.
trusted_proxiesNIKSPHERE_ENGINE_TRUSTED_PROXIES[]string[]IP addresses or CIDR ranges (e.g. 10.0.0.1, 10.0.0.0/8) of reverse proxies trusted to set the X-Forwarded-For and X-Real-IP headers. Empty by default: no proxy is trusted and the address of the direct connection is used as the client address. When the Engine runs behind a reverse proxy, list all proxies in the chain, otherwise every client appears with the proxy's address. Hostnames and ranges matching every address (0.0.0.0/0, ::/0) are rejected, and the Engine refuses to start if an entry is invalid.

Database Connection Settings ​

Configuration KeyEnvironment VariableTypeDefault ValueDescription
db_driverNIKSPHERE_ENGINE_DB_DRIVERstringsqliteDatabase backend to use: "sqlite" or "postgres". Must be "postgres" if db_host or db_port is set.
db_hostNIKSPHERE_ENGINE_DB_HOSTstring""Database host. If set together with db_port, db_driver must be "postgres".
db_nameNIKSPHERE_ENGINE_DB_NAMEstringniksphereDatabase name.
db_passwordNIKSPHERE_ENGINE_DB_PASSWORDstringniksphereDatabase password.
db_portNIKSPHERE_ENGINE_DB_PORTstring""Database port. If set together with db_host, db_driver must be "postgres".
db_urlNIKSPHERE_ENGINE_DB_URLstring""Full database connection URL (optional alternative to the individual db_host/db_port/db_username/db_password/db_name fields).
db_usernameNIKSPHERE_ENGINE_DB_USERNAMEstringniksphereDatabase username.

Identity & Authentication (IDP Broker) Settings ​

Configuration KeyEnvironment VariableTypeDefault ValueDescription
idp_refresh_token_expiry_daysNIKSPHERE_ENGINE_IDP_REFRESH_TOKEN_EXPIRY_DAYSstring30Number of days an issued refresh token remains valid.
idp_token_expiry_hoursNIKSPHERE_ENGINE_IDP_TOKEN_EXPIRY_HOURSstring24Number of hours an issued access token remains valid.

Bootstrap Admin Account ​

Configuration KeyEnvironment VariableTypeDefault ValueDescription
admin_passwordNIKSPHERE_ENGINE_ADMIN_PASSWORDstring""Password for the bootstrap/emergency admin account, seeded on startup.
admin_patNIKSPHERE_ENGINE_ADMIN_PATstring""Personal access token for the bootstrap/emergency admin account, seeded on startup.
admin_usernameNIKSPHERE_ENGINE_ADMIN_USERNAMEstring""Username for the bootstrap/emergency admin account, seeded on startup.

Debugging ​

Configuration KeyEnvironment VariableTypeDefault ValueDescription
allow_debuggingNIKSPHERE_ENGINE_ALLOW_DEBUGGINGbooleantrueWhether the DAP debug control-plane (/admin/dap) may be used to attach a debugger to a session. Should be set to false in Production environments.
debug_export_bytecodeNIKSPHERE_ENGINE_DEBUG_EXPORT_BYTECODEbooleanfalseWhen enabled, writes the linked runtime bytecode to bytecode.bin/bytecode.txt in the Engine cache directory on every runtime reload.

Release v1.0.0-build.67-channel.insider