Skip to main content

General

Configuration File Reference

Complete reference for 'Proxus-config.toml' keys and their Docker Environment Variable overrides.

The Core Server's behavior is controlled by the Proxus-config.toml file. Every setting in this file can be overridden using Environment Variables, which is the preferred method for Docker deployments.

lightbulb
Variable Mapping Rule

To override a TOML key using an environment variable:

  1. Convert the hierarchy to UPPERCASE.
  2. Replace dots (.) with underscores (_).
  3. Example: Security.Password.MinLength -> SECURITY_PASSWORD_MINLENGTH.

Core Service Settings

Controls the [Service] section. Defines the identity and network ports for the microservices.

TOML KeyEnvironment VariableTypeDescription
NameSERVICE_NAMEStringThe instance name visible in logs/cluster.
UI-PortSERVICE_UI_PORTStringHTTP port for the Management Console.
UI-HTTPS-PortSERVICE_UI_HTTPS_PORTStringHTTPS port for the Management Console.
UI-AddressSERVICE_UI_ADDRESSStringBind address for UI (e.g., 0.0.0.0).
WEBApi-PortSERVICE_WEBAPI_PORTStringHTTP port for the REST API.
WEBApi-HTTPS-PortSERVICE_WEBAPI_HTTPS_PORTStringHTTPS port for the REST API.
WEBApi-AddressSERVICE_WEBAPI_ADDRESSStringBind address for API.
Server-PortSERVICE_SERVER_PORTStringMain gRPC port for internal comms.
Server-HTTPS-PortSERVICE_SERVER_HTTPS_PORTStringSecure gRPC port.
Server-AddressSERVICE_SERVER_ADDRESSStringBind address for Server.
SSL-Certificate-NameSERVICE_SSL_CERTIFICATE_NAMEStringTLS certificate file name for HTTPS services (PFX/PKCS#12 or PEM/CRT/CER).
SSL-Certificate-PasswordSERVICE_SSL_CERTIFICATE_PASSWORDStringPassword for the certificate or encrypted PEM key (if required).
SSL-Certificate-Key-NameSERVICE_SSL_CERTIFICATE_KEY_NAMEStringPrivate key file name for PEM deployments (e.g., example.key).

Databases

Proxus uses a hybrid storage model (Relational + Time-Series). Controls the [Database] and [ClickHouse] sections.

General Database Settings

Controls the [Database] section.

TOML KeyEnvironment VariableTypeDescription
SystemConnectionStringDATABASE_CONNECTIONSTRINGStringPostgreSQL connection string (Users, Config).
TelemetryConnectionStringDATABASE_TELEMETRYCONNECTIONSTRINGStringConnection string for Time-Series DB.
TelemetryDBDATABASE_TELEMETRYDBStringDeprecated. Telemetry storage uses ClickHouse.
InsertStrategyDATABASE_INSERTSTRATEGYStringBulk (Recommended) or Single.
BulkInsertIntervalDATABASE_BULKINSERTINTERVALIntBuffer flush interval in ms (Default: 1000).
MaxConcurrentInsertsDATABASE_MAXCONCURRENTINSERTSIntMax parallel write operations.
EnableDataStoreCacheDATABASE_ENABLEDATASTORECACHEBoolEnable Level-2 caching for system tables.
TablesExcludedFromCacheDATABASE_TABLESEXCLUDEDFROMCACHEArrayTables to never cache (e.g., Logs).
DeviceRawDataRetentionPolicyDATABASE_DEVICERAWDATARETENTIONPOLICYStringRetention policy name for raw
data.

ClickHouse Tuning

Controls the [ClickHouse] section.

TOML KeyEnvironment VariableTypeDescription
ClickHouseHostCLICKHOUSE_CLICKHOUSEHOSTStringHostname of the ClickHouse server.
ClickHousePortCLICKHOUSE_CLICKHOUSEPORTIntNative TCP port (Default: 9000).
ClickHouseMySqlPortCLICKHOUSE_CLICKHOUSEMYSQLPORTIntMySQL emulation port (Default: 3306).
ClickHouseDatabaseCLICKHOUSE_CLICKHOUSEDATABASEStringDatabase name (Default: default).
ClickHouseUsernameCLICKHOUSE_CLICKHOUSEUSERNAMEStringAuth username.
ClickHousePasswordCLICKHOUSE_CLICKHOUSEPASSWORDStringAuth password.
ClickHouseWriteIntervalSecondsCLICKHOUSE_CLICKHOUSEWRITEINTERVALSECONDSIntBatch write frequency.
ClickHouseTTLExpressionCLICKHOUSE_CLICKHOUSETTLEXPRESSIONStringTTL SQL expression (e.g., toIntervalMonth(3)).
ClickHouseLogTTLExpressionCLICKHOUSE_CLICKHOUSELOGTTLEXPRESSIONStringTTL expression for logs (e.g. INTERVAL 45 DAY).

Messaging Backbone

Controls the [NATS] section.

TOML KeyEnvironment VariableTypeDescription
BrokerUrlNATS_BROKERURLStringBroker connection URL (e.g., nats://localhost:4222).
BrokerUserNATS_BROKERUSERStringCluster username.
BrokerPasswordNATS_BROKERPASSWORDStringCluster password.

Security & Authentication

Global Security

Controls the [Security] section.

TOML KeyEnvironment VariableTypeDescription
Lockout.EnabledSECURITY_LOCKOUT_ENABLEDBoolEnable account lockout on failure.
Lockout.MaxFailedAccessAttemptsSECURITY_LOCKOUT_MAXFAILEDACCESSATTEMPTSIntMax attempts before lockout.
Lockout.DefaultLockoutTimeSpanSECURITY_LOCKOUT_DEFAULTLOCKOUTTIMESPANIntLockout duration in seconds.

Password Policy

Controls the [Security.Password] section.

TOML KeyEnvironment VariableTypeDescription
MinLengthSECURITY_PASSWORD_MINLENGTHIntMinimum characters.
MaxLengthSECURITY_PASSWORD_MAXLENGTHIntMaximum characters.
RequireUppercaseSECURITY_PASSWORD_REQUIREUPPERCASEIntCount of uppercase chars required.
RequireLowercaseSECURITY_PASSWORD_REQUIRELOWERCASEIntCount of lowercase chars required.
RequireDigitsSECURITY_PASSWORD_REQUIREDIGITSIntCount of digits required.
RequireSpecialCharactersSECURITY_PASSWORD_REQUIRESPECIALCHARACTERSIntCount of symbols required.
AllowedSpecialCharactersSECURITY_PASSWORD_ALLOWEDSPECIALCHARACTERSArrayList of valid symbols (e.g.,
!@#$%).
PasswordHistorySECURITY_PASSWORD_PASSWORDHISTORYIntNumber of past passwords to remember.
PasswordExpirationDaysSECURITY_PASSWORD_PASSWORDEXPIRATIONDAYSIntDays before password expires.
PasswordExpirationWarningDaysSECURITY_PASSWORD_PASSWORDEXPIRATIONWARNINGDAYSIntDays to warn before
expiration.
PreventCommonPasswordsSECURITY_PASSWORD_PREVENTCOMMONPASSWORDSBoolBlock dictionary words.
PreventKeyboardPatternsSECURITY_PASSWORD_PREVENTKEYBOARDPATTERNSBoolBlock patterns like qwerty or
12345.
PreventRepeatedCharactersSECURITY_PASSWORD_PREVENTREPEATEDCHARACTERSBoolBlock aaaaa.
MaxRepeatedCharactersSECURITY_PASSWORD_MAXREPEATEDCHARACTERSIntMax consecutive repeats.
RequireChangeOnFirstLoginSECURITY_PASSWORD_REQUIRECHANGEONFIRSTLOGINBoolForce change for new users.
TempPasswordExpirationHoursSECURITY_PASSWORD_TEMPPASSWORDEXPIRATIONHOURSIntValidity of temp passwords (hours).

JWT & WebAPI

Controls the [Jwt] and [WEBAPI.Authentication.Jwt] sections.

TOML KeyEnvironment VariableTypeDescription
IssuerJWT_ISSUERStringToken Issuer claim.
AudienceJWT_AUDIENCEStringToken Audience claim.
KeyJWT_KEYString256-bit Signing Key.
Issuer (API)WEBAPI_AUTHENTICATION_JWT__0__ISSUERStringAPI specific issuer.
Audience (API)WEBAPI_AUTHENTICATION_JWT__0__AUDIENCEStringAPI specific audience.
IssuerSigningKeyWEBAPI_AUTHENTICATION_JWT__0__ISSUERSIGNINGKEYStringAPI specific signing key.
TokenExpireTimeWEBAPI_AUTHENTICATION_JWT__0__TOKENEXPIRETIMEStringToken validity duration.

Unified Namespace

Controls the [UNS] section.

TOML KeyEnvironment VariableTypeDescription
UNSEnabledUNS_UNSENABLEDBoolEnable UNS Contextualization.
UNSGroupIdUNS_UNSGROUPIDStringRoot Group ID (Sparkplug).
UNSVersionUNS_UNSVERSIONStringUNS Specification Version.
UNSDefaultEnterpriseUNS_UNSDEFAULTENTERPRISEStringDefault root node name.
UNSDefaultSiteUNS_UNSDEFAULTSITEStringDefault site name.
UNSDefaultAreaUNS_UNSDEFAULTAREAStringDefault area name.
UNSRetainMessagesUNS_UNSRETAINMESSAGESBoolSet MQTT Retain flag on publish.
UNSUseSparkplugBUNS_UNSUSESPARKPLUGBBoolEnable SparkplugB payload format.
UNSEdgeNodeIdUNS_UNSEDGENODEIDStringEdge Node Identifier.
UNSEdgeNodeUsernameUNS_UNSEDGENODEUSERNAMEStringSparkplug connection user.
UNSEdgeNodePasswordUNS_UNSEDGENODEPASSWORDStringSparkplug connection password.

UNS Optimizations

Controls the [UNS.Optimizations] section.

TOML KeyEnvironment VariableTypeDescription
TelemetryThinPayloadUNS_OPTIMIZATIONS_TELEMETRYTHINPAYLOADBoolRemove "context" object from telemetry payloads.
SummaryIncludeContextUNS_OPTIMIZATIONS_SUMMARYINCLUDECONTEXTBoolInclude ISA-95 context in _summary messages.
SummaryIntervalMsUNS_OPTIMIZATIONS_SUMMARYINTERVALMSIntMin publish interval for _summary (ms).
LastSeenIntervalMsUNS_OPTIMIZATIONS_LASTSEENINTERVALMSIntMin publish interval for _lastSeen (ms).
StatusOnChangeOnlyUNS_OPTIMIZATIONS_STATUSONCHANGEONLYBoolPublish _status only when value changes.
SummaryOnlyOnChangeUNS_OPTIMIZATIONS_SUMMARYONLYONCHANGEBoolPublish _summary only when hash changes.

Integrations

Controls the [MQTTBroker], [MQTTAPI], and [HttpServer] sections.

Embedded MQTT Broker

Controls the [MQTTBroker] section.

TOML KeyEnvironment VariableTypeDescription
EnabledMQTTBROKER_ENABLEDBoolEnable internal broker.
MQTTBrokerPortMQTTBROKER_MQTTBROKERPORTIntListening port.
AllowAnonymousMQTTBROKER_ALLOWANONYMOUSBoolAllow auth-less connections.
MasterTokenMQTTBROKER_MASTERTOKENStringSuperuser token.
BrokerHostAddressMQTTBROKER_BROKERHOSTADDRESSStringBind address.
EnableMQTTHooksMQTTBROKER_ENABLEMQTTHOOKSBoolEnable internal hooks.

External MQTT Client

Controls the [MQTTAPI] section.

TOML KeyEnvironment VariableTypeDescription
MQTTServerMQTTAPI_MQTTSERVERStringExternal Broker Address.
MQTTPortMQTTAPI_MQTTPORTIntExternal Broker Port.
MQTTUserMQTTAPI_MQTTUSERStringUsername.
MQTTPasswordMQTTAPI_MQTTPASSWORDStringPassword.
MQTTVersionMQTTAPI_MQTTVERSIONStringProtocol Version (3.1.1, 5.0).
MQTTConnectionTimeOutMQTTAPI_MQTTCONNECTIONTIMEOUTIntConnection timeout (ms).
MQTTKeepAlivePeriodMQTTAPI_MQTTKEEPALIVEPERIODIntKeep Alive (sec).
MQTTCleanSessionMQTTAPI_MQTTCLEANSESSIONBoolClean Session flag.
MQTTQosMQTTAPI_MQTTQOSIntDefault QoS (0, 1, 2).
MQTTRetainMQTTAPI_MQTTRETAINBoolDefault Retain flag.

HTTP Server

Controls the [HttpServer] section.

TOML KeyEnvironment VariableTypeDescription
EnabledHTTPSERVER_ENABLEDBoolEnable HTTP Ingestion endpoint.
PortHTTPSERVER_PORTIntListening port.
MaxConcurrentConnectionsHTTPSERVER_MAXCONCURRENTCONNECTIONSIntMax connections.
MaxRequestBodySizeHTTPSERVER_MAXREQUESTBODYSIZELongMax payload size in bytes.
KeepAliveTimeoutHTTPSERVER_KEEPALIVETIMEOUTIntKeep-alive timeout.
MaxKeepAliveRequestsHTTPSERVER_MAXKEEPALIVEREQUESTSIntMax requests per connection.
RequestHeadersTimeoutHTTPSERVER_REQUESTHEADERSTIMEOUTIntHeader read timeout.
EnableHttpsHTTPSERVER_ENABLEHTTPSBoolEnable TLS.
SslCertificatePathHTTPSERVER_SSLCERTIFICATEPATHStringPath to PFX/PKCS#12 certificate.
SslCertificatePasswordHTTPSERVER_SSLCERTIFICATEPASSWORDStringCertificate password.
RateLimitPermitLimitHTTPSERVER_RATELIMITPERMITLIMITIntRequests per window.
RateLimitWindowSecondsHTTPSERVER_RATELIMITWINDOWSECONDSIntRate limit window size.
EnableCompressionHTTPSERVER_ENABLECOMPRESSIONBoolEnable GZIP/Brotli.

Cluster & Actors

Controls the [Cluster] and [ProtoActor] sections.

TOML KeyEnvironment VariableTypeDescription
GrpcInterfaceBindingCLUSTER_GRPCINTERFACEBINDINGStringIP to bind for cluster traffic.
ClusterProviderCLUSTER_CLUSTERPROVIDERStringProvider type (e.g. Kubernetes, Consul).
IdentityLookupStrategyCLUSTER_IDENTITYLOOKUPSTRATEGYStringStrategy for finding actors.
HeartbeatExpirationCLUSTER_HEARTBEATEXPIRATIONIntCluster heartbeat timeout.
ActorRequestTimeoutCLUSTER_ACTORREQUESTTIMEOUTIntDefault timeout for actor calls.
ActorActivationTimeoutCLUSTER_ACTORACTIVATIONTIMEOUTIntTimeout for spawning actors.
GossipRequestTimeoutCLUSTER_GOSSIPREQUESTTIMEOUTIntGossip protocol timeout.
DeveloperLoggingPROTOACTOR_DEVELOPERLOGGINGBoolVerbose actor logging.
SubscribersStorageTypePROTOACTOR_PUBSUB_SUBSCRIBERSSTORAGETYPEStringPubSub backend (Redis,
InMemory).
RedisConnectionStringPROTOACTOR_PUBSUB_REDISCONNECTIONSTRINGStringRedis connection string.
RedisMaxConcurrencyPROTOACTOR_PUBSUB_REDISMAXCONCURRENCYIntRedis concurrency limit.

User Functions

Controls the [UserFunctions] section.

TOML KeyEnvironment VariableTypeDescription
ExceptionThresholdPerFunctionUSERFUNCTIONS_EXCEPTIONTHRESHOLDPERFUNCTIONIntMax crashes before undeploy
(Default: 10).
UseAutoDisposeInjectorUSERFUNCTIONS_USEAUTODISPOSEINJECTORBoolAuto-inject Dispose calls.
UseAutoTryCatchInjectorUSERFUNCTIONS_USEAUTOTRYCATCHINJECTORBoolAuto-inject Try/Catch blocks.
LogProxusCompilerGeneratedCodeUSERFUNCTIONS_LOGPROXUSCOMPILERGENERATEDCODEBoolDebug generated C# code.
LogLevelPolicyUSERFUNCTIONS_LOGLEVELPOLICYArrayLog rate limits (e.g., Error: 10 1h).

Observability & Maintenance

Logging & Tracing

Controls the [Logging], [Tracing], [Metrics], and [Otlp] sections.

TOML KeyEnvironment VariableTypeDescription
LoglevelLOGGING_LOGLEVELInt0=Trace, 1=Debug, 2=Info, ...
LogRetentionTimeLOGGING_LOGRETENTIONTIMEIntRetention days for text logs.
LogToFileLOGGING_LOGTOFILEBoolWrite logs to disk.
LogSqlQueriesLOGGING_LOGSQLQUERIESBoolLog generated SQL (Verbose!).
Enable (Tracing)TRACING_ENABLEBoolEnable OpenTelemetry Tracing.
Enable (Metrics)METRICS_ENABLEBoolEnable OpenTelemetry Metrics.
PrometheusMETRICS_PROMETHEUSBoolExpose /metrics endpoint.
Endpoint (OTLP)OTLP_ENDPOINTStringOTLP Collector URL.
MetricsIntervalMillisecondsOTLP_METRICSINTERVALMILLISECONDSIntExport interval.

Data Settings

Controls the [Data] section.

TOML KeyEnvironment VariableTypeDescription
MaxDeviceDataLoadDATA_MAXDEVICEDATALOADIntMax records to fetch for UI charts.
DeviceDataTimeRangeDATA_DEVICEDATATIMERANGEStringDefault UI time range.
LogsTimeRangeDATA_LOGSTIMERANGEStringDefault Logs time range (e.g. "1d").
DeviceMetricsTransmissionIntervalDATA_DEVICEMETRICSTRANSMISSIONINTERVALIntHealth metrics push interval.

Miscellaneous

Edge Gateway

Controls the [EdgeGateway] section.

TOML KeyEnvironment VariableTypeDescription
EdgeModeEDGEGATEWAY_EDGEMODEStringProxus (Core) or Edge (Agent).
IntegrationEDGEGATEWAY_INTEGRATIONStringIntegration mode.
GatewayNameEDGEGATEWAY_GATEWAYNAMEStringLogical name of the gateway.
GatewayIDEDGEGATEWAY_GATEWAYIDStringNumeric ID (Core is always 1).
EdgeMetricsTransmissionIntervalEDGEGATEWAY_EDGEMETRICSTRANSMISSIONINTERVALIntEdge health push interval.

UI & Themes

Controls the [UI] and [DevExpress...] sections.

TOML KeyEnvironment VariableTypeDescription
ForceSkiaRenderingUI_FORCESKIARENDERINGBoolForce SkiaSharp for charts.
EnableDashboardExportRestrictedModeUI_ENABLEDASHBOARDEXPORTRESTRICTEDMODEBoolRestrict export formats.
LanguagesDEVEXPRESS_EXPRESSAPP_LANGUAGESStringSupported UI languages.
ShowLanguageSwitcherDEVEXPRESS_EXPRESSAPP_SHOWLANGUAGESWITCHERBoolShow/Hide language menu.
DefaultItemNameDEVEXPRESS_EXPRESSAPP_THEMESWITCHER_DEFAULTITEMNAMEStringDefault Theme (e.g. Purple).
ShowSizeModeSwitcherDEVEXPRESS_EXPRESSAPP_THEMESWITCHER_SHOWSIZEMODESWITCHERBoolShow Compact/Touch
toggle.

Model Context Protocol

Controls the [MCP] section. AI Agent interface and security permissions.

TOML KeyEnvironment VariableTypeDescription
EnabledMCP_ENABLEDBoolEnable MCP server functionality.
AllowedMethodsMCP_ALLOWEDMETHODSStringAllowed HTTP verbs (e.g. "GET,POST").
BlockDeleteMCP_BLOCKDELETEBoolBlock all DELETE operations regardless of user permissions.
BlockBulkOperationsMCP_BLOCKBULKOPERATIONSBoolPrevent modification of multiple entities in one request.
AdminOnlyMCP_ADMINONLYBoolRestrict access to Administrators group only.
RateLimitEnabledMCP_RATELIMITENABLEDBoolEnable request rate limiting.
RateLimitRequestsPerMinuteMCP_RATELIMITREQUESTSPERMINUTEIntMax requests per user/minute.
AuditLoggingMCP_AUDITLOGGINGBoolLog all operations to audit trail.
IPWhitelistMCP_IPWHITELISTArrayAllowed IP addresses/CIDR blocks. Empty = Allow All.
MaxConcurrentSessionsPerUserMCP_MAXCONCURRENTSESSIONSPERUSERIntMax active sessions (0 = Unlimited).
AlertOnSuspiciousActivityMCP_ALERTONSUSPICIOUSACTIVITYBoolTrigger alerts on anomaly detection.
DebugLoggingMCP_DEBUGLOGGINGBoolVerbose console logging for diagnostics.

Host Environment

Variable NameDescription
DYLD_FALLBACK_LIBRARY_PATHSystem library path override (Crucial for macOS/Linux native interop).
DEVELOPMENT_ALLOWEDHOSTSComma-separated list of allowed host headers.
CULTURE_NAMEForce .NET Culture (e.g. tr-TR).
KESTREL_ENDPOINTDEFAULTS_PROTOCOLSHTTP Protocol versions (Http1, Http2).