Skip to content

Server configuration

eaxScadaReferenceStarterView as Markdown

The server configuration file (config/config.yaml), decoded into Config.

The file is read by a line parser, not decoded into the structure below: only these keys are read. A section is the last key written without a value; indentation is not significant. Lists are written as - item lines or as [a, b] on one line.

Section Key Type Sets Description
analytics › export dir string Analytics.Export.Dir Dir: the folder of the users’ export files (default data/analytics/exports): inside the data folder, or absolute.
analytics › export keep duration (for example 10s) Analytics.Export.Keep Keep: how long an export file is kept before it is swept (“24h”, the default; swept at start and every 10 minutes).
analytics › export max_bytes integer Analytics.Export.MaxBytes MaxBytes: the largest export (“512MiB”, the default; at most 4GiB). An export’s result is held in the server’s memory up to this size while its file is written.
analytics › export max_rows integer Analytics.Export.MaxRows MaxRows: the most rows of one export (default 1000000).
analytics › export workers integer Analytics.Export.Workers Workers: exports running at once on the server (default 1; the others wait, queued).
analytics extract_bytes integer Analytics.ExtractBytes ExtractBytes: the most bytes a user’s extracts hold together (“512MiB”, the default; at most 4GiB). The extracts are held in the server’s memory, one in-memory database per user.
analytics extract_idle duration (for example 10s) Analytics.ExtractIdle ExtractIdle: a user’s extracts unused for this long are dropped (“30m”, the default; 5m to 24h).
analytics extract_per_user integer Analytics.ExtractPerUser ExtractPerUser: the most extracts one user holds at once (default 8; 1 to 32).
analytics extract_rows integer Analytics.ExtractRows ExtractRows: the most rows a user’s extracts hold together, over the whole session (cross-source queries; default 2000000).
analytics extract_sessions integer Analytics.ExtractSessions ExtractSessions: the most users holding extracts at once, server-wide (default 4; 1 to 64). Each session’s in-memory database may take 2 x extract_bytes + 256MiB: the worst case is extract_sessions times that, refused above 16GiB.
analytics max_rows integer Analytics.MaxRows MaxRows: the most rows an ad-hoc query returns (default 100000).
analytics per_user integer Analytics.PerUser PerUser: running queries per user (default 1).
analytics query_timeout duration (for example 10s) Analytics.QueryTimeout QueryTimeout: an ad-hoc query’s time limit (“60s”, the default).
analytics workers integer Analytics.Workers Workers: running queries on the server (default 2).
assistant enabled boolean Assistant.Enabled Enabled: false switches the assistant off on this server: its store (data/assistant, data/security/assistant.key) is not opened and every /api/assistant/* route answers 404. Default true.
cloud data_dir string Cloud.DataDir DataDir holds the node key (it never leaves this folder), the cloud credentials and the link state. Default: data/cloud.
cloud enabled boolean Cloud.Enabled Enabled: false keeps the link off even when this server is enrolled (default true). An unreadable value means false.
cloud › remote_control confirmed integer Cloud.RemoteControl.Confirmed Confirmed: CloudRemoteConfirmed when an administrator set the switches with remote access in place; below it every switch is off.
cloud › remote_control engineer boolean Cloud.RemoteControl.Engineer Engineer: change and deploy this site’s project from the cloud. Needs View.
cloud › remote_control local_accept boolean Cloud.RemoteControl.LocalAcceptOff LocalAcceptOff: operate and engineer sessions start without a local person accepting them (config.yaml local_accept: false, for unattended sites). Off by default: a person on site accepts.
cloud › remote_control max_minutes integer Cloud.RemoteControl.MaxMinutes MaxMinutes: when above 0, no remote session lasts longer than this (it can only shorten the built-in limits).
cloud › remote_control operate boolean Cloud.RemoteControl.Operate Operate: send operator commands from the cloud, with this site’s own sign-in and e-signature. Needs View.
cloud › remote_control view boolean Cloud.RemoteControl.View View: see this site’s screens and values from the cloud.
ha cluster_size integer HA.ClusterSize
ha enabled boolean HA.Enabled
ha heartbeat_interval duration (for example 10s) HA.HeartbeatInterval
ha lease_ttl duration (for example 10s) HA.LeaseTTL
ha node_id string HA.NodeID
ha public_url string HA.PublicURL PublicURL: this node’s web address as users reach it (e.g. https://scada-a.plant.local:8080). The standbys name it when an engineer tries to change the configuration on them. Optional.
ha role string HA.Role “primary”, “standby”, “witness”
health cpu_high_for duration (for example 10s) Health.CPUHighFor default 10m
health cpu_high_percent number Health.CPUHighPercent default 90
health interval duration (for example 10s) Health.Interval sampling, default 10s
health memory_low_for duration (for example 10s) Health.MemoryLowFor default 1m
health memory_low_percent number Health.MemoryLowPercent available, default 10
historian › disk check_interval duration (for example 10s) Historian.Disk.CheckInterval CheckInterval: how often the disk is checked (default 1m).
historian › disk critical_free FreeThreshold Historian.Disk.CriticalFree CriticalFree: under it, the “disk space critical” alarm, the emergency purge (PurgeOnCritical) and the pause of historian logging (PauseOnCritical) until space returns (default 5%).
historian › disk pause_on_critical boolean Historian.Disk.PauseOnCritical PauseOnCritical: stop writing history while the disk is critical (tag values, alarms and control go on). Default true.
historian › disk purge_on_critical boolean Historian.Disk.PurgeOnCritical PurgeOnCritical: delete the oldest days (CSV partitions first, never today or yesterday) when the disk is critical. Default false; new installs are written with true.
historian › disk quota_target number Historian.Disk.QuotaTarget QuotaTarget: what an over-budget purge goes down to, as a fraction of max_size (default 90%).
historian › disk warn_free FreeThreshold Historian.Disk.WarnFree WarnFree: under it, the “disk space low” system alarm (default 15%).
historian engine string Historian.Engine (withheld: names a third-party library)
historian › export compress boolean Historian.Export.Compress
historian › export dir string Historian.Export.Dir must be inside historian.export_allowed_dirs
historian › export enabled boolean Historian.Export.Enabled
historian › export format string Historian.Export.Format parquet or csv
historian › export keep_days integer Historian.Export.KeepDays
historian › export schedule string Historian.Export.Schedule local time “HH:MM”, default 02:00
historian export_allowed_dirs list of string Historian.ExportAllowedDirs ExportAllowedDirs are the folders the historian export may be set to write to. Set here, in the server config file - not from the web UI. Empty: the SCADA data folder only.
historian extension_dir string Historian.ExtensionDir ExtensionDir is the folder holding the storage extensions that encryption at rest loads. The historian never downloads them, so an offline install works with the folder the package ships. Empty: the historian_ext folder next to the server executable. The environment variable EAX_HISTORIAN_EXT_DIR overrides it.
historian › logging default_deadband number Historian.Logging.DefaultDeadband absolute; 0 with a policy set: log changes only
historian › logging default_max_interval duration (for example 10s) Historian.Logging.DefaultMaxInterval a point at least this often for a steady value
historian › logging default_min_interval duration (for example 10s) Historian.Logging.DefaultMinInterval at most one point per interval (the latest is kept)
historian max_size integer Historian.MaxSize MaxSize: the historian’s disk budget in bytes (“50GB”; 1 GB = 1024 MB). Over it the oldest days are purged down to disk.quota_target. 0: no budget.
historian path string Historian.Path
historian purge_interval duration (for example 10s) Historian.PurgeInterval PurgeInterval: how often the retention purge runs (default 1h).
historian retention duration (for example 10s) Historian.Retention Retention: whole UTC days of history older than this are purged (CSV partitions and the columnar store alike; never today or yesterday). 0 (“unlimited”) keeps history forever: the default of a config file without the key. New installs are written with 90d.
historian retention_overrides list of RetentionOverride Historian.RetentionOverrides RetentionOverrides: per tag or path pattern (“- Area/Line/*=30d”), the most specific pattern wins; “unlimited” keeps that history forever.
historian › snapshot dir string Historian.Snapshot.Dir default ./data/backup/historian
historian › snapshot enabled boolean Historian.Snapshot.Enabled
historian › snapshot keep integer Historian.Snapshot.Keep snapshots kept, default 2
historian › snapshot schedule string Historian.Snapshot.Schedule local time “HH:MM”, default 01:30
historian › spool max_size integer Historian.Spool.MaxSize bytes; default 2 GB
historian › store checkpoint_interval duration (for example 10s) Historian.Store.CheckpointInterval CheckpointInterval: how often the write-ahead log is written into the file and deleted rows’ blocks are freed for reuse (default 1h).
historian › store memory_limit string Historian.Store.MemoryLimit MemoryLimit, e.g. “1GB”. Empty: the store’s default, 25% of the physical memory, at least 512 MiB, at most 4 GiB (duckstore.ResolveMemoryCap). Past it the store spills to disk.
historian › store path_index boolean Historian.Store.PathIndex PathIndex: the (tag, time) index of the store. It made up about 90% of the file without speeding up trend queries; false drops it (new installs). Default true: an existing store is left as it is.
historian › store threads integer Historian.Store.Threads Threads, e.g. 2. 0: one per 64 MiB of the memory cap, at most every core (a thread with less memory cannot spill a large sort to disk).
historian › tde_encryption cipher string Historian.TDEEncryption.Cipher
historian › tde_encryption enabled boolean Historian.TDEEncryption.Enabled
historian › tde_encryption key string Historian.TDEEncryption.Key
historian › tde_encryption key_env string Historian.TDEEncryption.KeyEnv
historian › tde_encryption key_file string Historian.TDEEncryption.KeyFile
licence file string Licence.File
logging console_format string Logging.ConsoleFormat text or json
logging file string Logging.File File: the JSON log file (rotated at 10 MB, 5 old files kept). A relative path is under the work directory (--workdir). Default logs/eaxScada.log. The folder is created; a path that cannot be written stops the server at start.
logging file_enabled boolean Logging.FileEnabled FileEnabled: false writes no log file. The console (the journal under systemd, the container log under Docker), the log table (/api/logs) and the syslog export stay. Default true.
logging level string Logging.Level debug, info, warn, error
logging › syslog address string Logging.Syslog.Address host:port
logging › syslog app_name string Logging.Syslog.AppName
logging › syslog ca_file string Logging.Syslog.CAFile
logging › syslog enabled boolean Logging.Syslog.Enabled
logging › syslog facility integer Logging.Syslog.Facility
logging › syslog level string Logging.Syslog.Level debug, info, warn, error
logging › syslog network string Logging.Syslog.Network udp, tcp or tls
metrics allow_localhost boolean Metrics.AllowLocalhost AllowLocalhost serves /metrics without credentials to callers on the loopback interface (a node-local agent). Off by default.
metrics enabled boolean Metrics.Enabled
metrics history_interval duration (for example 10s) Metrics.HistoryInterval HistoryInterval: how often the System Health history is sampled into the historian (System/Health/<node>/…). 0 turns the history off.
metrics history_retention duration (for example 10s) Metrics.HistoryRetention HistoryRetention: how long that history is kept.
metrics token_file string Metrics.TokenFile TokenFile holds the read-only scrape token (Authorization: Bearer <token>); “” means no token, sessions only.
cluster advertise string NATS.Cluster.Advertise
cluster enabled boolean NATS.Cluster.Enabled
cluster listen string NATS.Cluster.Listen
cluster name string NATS.Cluster.Name
cluster no_advertise boolean NATS.Cluster.NoAdvertise
cluster port integer NATS.Cluster.Port
cluster routes list of string NATS.Cluster.Routes
nats http_host string NATS.HTTPHost HTTPHost: the interface the NATS monitoring port (http_port) listens on. It has no authentication, so it stays on 127.0.0.1 even when the client port listens on every interface (containers set NATS_HOST= 0.0.0.0); /metrics serves the same figures with authentication.
nats http_port integer NATS.HTTPPort
nats host string NATS.Host
nats leaf_nodes list of string NATS.LeafNodes
nats port integer NATS.Port
nats start_timeout duration (for example 10s) NATS.StartTimeout StartTimeout: how long the server waits at start for the embedded broker to accept connections before it gives up (and exits with “embedded broker failed to start”). Default 10s, at least 1s; raise it on a slow machine or a large JetStream store.
nats telemetry_buffer integer NATS.TelemetryBuffer TelemetryBuffer: the most bytes the in-memory replay buffer of uns.telemetry.> (JetStream stream TELEMETRY, 10 minutes at most) holds; the oldest messages go first. Default 64MB, at least 1MB.
plc accept_simulated boolean PLC.AcceptSimulated AcceptSimulated: take in the values of a simulated eaxPLC (one an eaxsim host runs for virtual commissioning; it says “simulated”: true), every tag from it marked Simulated. Off by default: such a PLC’s values are refused (internal/plcsim), so a simulation is never shown as the plant. Changed in Settings > Simulated PLCs by an administrator, audited. An unreadable value means false.
production backfill_days integer Production.BackfillDays BackfillDays: how far back a newly configured machine is computed from the history (default 30, 0-400).
(withheld: names a third-party library) memory_limit string (withheld: names a third-party library) MemoryLimit: production file’s memory cap, e.g. “1GB”. Empty: the store’s default, 512 MiB (duckstore.ResolveMemoryCap). Past it the store spills to disk.
production enabled boolean Production.Enabled Enabled: run the OEE and downtime service on this server (default false: an install that does not use it starts nothing).
production hook_queue integer Production.HookQueue HookQueue: the logged points of source tags buffered between two takes of the service (default 65536, 1024-16777216); when full, the machines of the points not kept are recomputed from the historian.
production › retention intervals duration (for example 10s) Production.Retention.Intervals Intervals: how long the state intervals are kept (default 400d, at least 1d); slices and events are kept.
production settle duration (for example 10s) Production.Settle Settle: rows are final up to now minus this (default 2s, 100ms-60s).
production write_interval duration (for example 10s) Production.WriteInterval WriteInterval: how often the final rows are written (default 10s, 1s-10m).
reports › archive dir string Reports.Archive.Dir Dir: the folder of the archived report files (default data/reports/archive).
reports › archive min_free integer Reports.Archive.MinFree MinFree: the free space the archive always leaves on its volume (“2GiB”, the default; more than 0). The floor is the larger of it and the historian’s critical_free on that volume: a report is not archived when writing it would go under the floor.
reports › archive pdfa boolean Reports.Archive.PDFA PDFA: archived PDFs are PDF/A (default true).
reports › archive quota integer Reports.Archive.Quota Quota: the archive’s disk budget (“20GiB”, the default; more than 0). The storage alarm is active from 80 % of it; a run that would pass it is not archived; nothing is deleted to make room.
reports › archive › retention signed duration (for example 10s) Reports.Archive.Retention.Signed Signed: how long a signed report is kept (“never”, the default).
reports › archive › retention standard duration (for example 10s) Reports.Archive.Retention.Standard Standard: how long an unsigned archived report is kept (“3y”, the default; “never”; at least 1 day).
reports chart_vms integer Reports.ChartVMs ChartVMs: script engines that render report charts (default 2, 1-32).
reports › email allowed_domains list of string Reports.Email.AllowedDomains AllowedDomains: the domains external addresses may have (default none: no external delivery).
reports › email attachments boolean Reports.Email.Attachments Attachments: messages may carry the report file (default false: a link to the Archive entry, which needs sign-in).
reports › email base_url string Reports.Email.BaseURL BaseURL: the address users open eaxScada at (“https://scada.example.com”), from which a link-mode message builds the Archive entry’s link (default none: link-mode messages are refused, internal/reports/deliver).
reports › email max_attachment integer Reports.Email.MaxAttachment MaxAttachment: the largest attached file (“10MiB”, the default).
reports › email › smtp allow_plain boolean Reports.Email.SMTP.AllowPlain AllowPlain: starttls false is accepted, for a relay on this machine only (host localhost or a loopback address), never with a username (default false: starttls false is refused).
reports › email › smtp from string Reports.Email.SMTP.From From: the sender address (required with a host).
reports › email › smtp host string Reports.Email.SMTP.Host
reports › email › smtp password_ref string Reports.Email.SMTP.PasswordRef PasswordRef: the name of the password in the server’s secret store, never the password itself.
reports › email › smtp port integer Reports.Email.SMTP.Port Port: default 587.
reports › email › smtp starttls boolean Reports.Email.SMTP.StartTLS StartTLS: upgrade the connection before anything is sent (default true). A server that does not offer it is refused.
reports › email › smtp username string Reports.Email.SMTP.Username
reports enabled boolean Reports.Enabled Enabled: the module runs on this server (default true). The edition decides whether it may (Pro and Enterprise); false turns it off on a licensed server.
reports › folders allowed list of string Reports.Folders.Allowed Allowed: the only folders reports may be delivered to (absolute paths; default none). No path from a request is ever used.
reports › fonts extra_dirs list of string Reports.Fonts.ExtraDirs ExtraDirs: folders of additional report fonts (absolute paths; default none).
reports max_pages integer Reports.MaxPages MaxPages: the most pages of one PDF (default 2000).
reports max_result_bytes integer Reports.MaxResultBytes MaxResultBytes: the most bytes one dataset result may hold in memory (“256MiB”, the default).
reports max_window duration (for example 10s) Reports.MaxWindow MaxWindow: the longest time range a report parameter may span (“400d”, the default; “2w”, “36h”).
reports › pdf max_rows integer Reports.PDF.MaxRows MaxRows: the most dataset rows a PDF report reads (default 100000).
reports › pdf max_table_rows integer Reports.PDF.MaxTableRows MaxTableRows: the most rows one PDF table prints (default 20000, at most max_rows).
reports › preview max_rows integer Reports.Preview.MaxRows MaxRows: the most rows of a dataset or report preview (default 10000).
reports query_timeout duration (for example 10s) Reports.QueryTimeout QueryTimeout: the longest a dataset query of an on-demand run or preview may take (default 60s).
reports queue integer Reports.Queue Queue: runs waiting for a worker; more are refused (default 20, 1-10000).
reports run_timeout duration (for example 10s) Reports.RunTimeout RunTimeout: the longest a whole run may take, queries and rendering (default 10m; at least query_timeout and scheduled_query_timeout).
reports scheduled_query_timeout duration (for example 10s) Reports.ScheduledQueryTimeout ScheduledQueryTimeout: the same for a scheduled run (default 300s).
reports workers integer Reports.Workers Workers: report runs rendered at the same time (default 2, 1-64).
reports › xlsx max_rows integer Reports.XLSX.MaxRows MaxRows: the most rows of an Excel report (default 1000000).
security audit_data_dir string Security.AuditDataDir
security audit_memory_bytes integer Security.AuditMemoryBytes AuditMemoryBytes: the most memory the ledger’s recent records take, in bytes or as a size (“64MiB”, “256MB”). The window holds records until this or audit_memory_records is reached, whichever comes first. 0: the default, 64 MiB. A negative or unreadable value (also “unlimited”) is refused: the server does not start.
security audit_memory_records integer Security.AuditMemoryRecords AuditMemoryRecords: the most recent audit records the ledger keeps in memory, a whole number of records. Older records stay in the ledger file and are read from it (slower). 0: the default, 10000 records. A negative or unreadable value is refused: the server does not start.
security data_dir string Security.DataDir
server allowed_origins list of string Server.AllowedOrigins AllowedOrigins: browser origins besides the server’s own (“https://hmi.plant.example”) whose pages may open the /ws live-data socket and send state-changing requests (POST, PUT, PATCH, DELETE) authenticated by the session or station cookie, sign-in included. The server’s own origin is always allowed; everything else is refused (403 cross_origin).
server auto_open_browser boolean Server.AutoOpenBrowser
server host string Server.Host
server port integer Server.Port
server trusted_proxies list of string Server.TrustedProxies TrustedProxies: reverse proxies (CIDRs or addresses) whose X-Forwarded-For / X-Real-IP / X-Forwarded-Proto / X-Forwarded-Host headers are believed for the client address (audit, lockout, rate limits, the /metrics localhost rule) and for the server’s own origin in both origin checks (the /ws socket and cookie-authenticated state-changing requests). Empty (the default): those headers are ignored.
server ws_batch_ms integer Server.WSBatchMS WSBatchMS: tag updates are coalesced per /ws socket over this window (latest value per tag); 50-1000, 0: the default (100).
server ws_max_per_ip integer Server.WSMaxPerIP WSMaxPerIP: concurrent /ws sockets per client address; past it a socket is closed with 1008. 0: the default (32); negative: no cap.
server ws_max_per_session integer Server.WSMaxPerSession WSMaxPerSession: concurrent /ws sockets per session; past it a socket is closed with 1008. 0: the default (8); negative: no cap.
server ws_max_prefixes integer Server.WSMaxPrefixes WSMaxPrefixes: prefix entries (“Plant/Line1/*”) one view may hold; 0: the default (16), at most 256.
server ws_max_tags integer Server.WSMaxTags WSMaxTags: tags one /ws socket may subscribe to; 0: the default (50000), at most 500000.
server ws_max_views integer Server.WSMaxViews WSMaxViews: views (pages, popups, docks, widgets) one /ws socket may subscribe for; 0: the default (256), at most 4096.
server ws_send_queue integer Server.WSSendQueue WSSendQueue: messages a /ws socket may have waiting to be written; past it the socket is closed with 1013 (too slow) and the browser reconnects. 0: the default (4096).
server web_dir string Server.WebDir
site time_zone string Site.TimeZone TimeZone: the plant’s time zone, an IANA name (“Europe/Paris”) or “UTC”; reports print times in it. Empty: the server’s own zone.
studio default_screen string Studio.DefaultScreen DefaultScreen: the screen id the Designer opens when the browser has no last-opened screen, and the plain /runtime (no project, page or screen in the address) opens. Empty: the project’s startup page. Environment: EAX_STUDIO_DEFAULT_SCREEN.
studio live_preview_default boolean Studio.LivePreviewDefault LivePreviewDefault: the Designer opens with Live Preview on (bound values follow the live tags). Default false. Also per visit with ?live=1 in the studio address.
tag_engine capacity integer TagEngine.Capacity
tag_engine deadband_default number TagEngine.DeadbandDefault
tag_engine max_tags integer TagEngine.MaxTags 0 = unlimited across all tiers
(top level) tier string Tier Tier is legacy: the “tier:” key of older configuration files and the SCADA_TIER variable are still read, but they never set the edition (the verified licence does: internal/edition). main logs that they are ignored. Empty when neither is set.

Applied after the file is read.

Variable Sets
SCADA_PORT Server.Port
PORT Server.Port
NATS_HOST NATS.Host
NATS_HTTP_PORT NATS.HTTPPort
NATS_HTTP_HOST NATS.HTTPHost
EAX_METRICS_TOKEN_FILE Metrics.TokenFile
EAX_LOG_LEVEL Logging.Level
EAX_LOG_FILE Logging.File
EAX_LOG_FILE_ENABLED Logging.FileEnabled
NATS_PORT NATS.Port
SCADA_TIER Tier
NATS_CLUSTER_PORT NATS.Cluster.Enabled, NATS.Cluster.Port
NATS_CLUSTER_NAME NATS.Cluster.Name
HA_ROLE HA.Role
HA_NODE_ID HA.NodeID
HA_PUBLIC_URL HA.PublicURL
NATS_CLUSTER_ROUTES NATS.Cluster.Enabled, NATS.Cluster.Routes
EAX_HISTORIAN_TDE_ENABLED Historian.TDEEncryption.Enabled
(withheld: names a third-party library) Historian.TDEEncryption.Enabled
EAX_HISTORIAN_TDE_KEY Historian.TDEEncryption.Key
(withheld: names a third-party library) Historian.TDEEncryption.Key
EAX_ASSISTANT_ENABLED Assistant.Enabled

Fields not read from the file or the environment

Section titled “Fields not read from the file or the environment”

These fields keep their built-in defaults (or are set by the server itself):

  • Historian.RetentionOverrides.Pattern
  • Historian.RetentionOverrides.Retention
  • Historian.Disk.WarnFree.Percent
  • Historian.Disk.WarnFree.Bytes
  • Historian.Disk.CriticalFree.Percent
  • Historian.Disk.CriticalFree.Bytes
  • Cloud.RemoteControl.CosignDeploys
  • Cloud.RemoteControl.CosignWrites
  • Reports.Shifts.Name
  • Reports.Shifts.StartMinute
  • IsZeroConfigBootstrapped
  • SourcePath
  • UnknownKeys.Line
  • UnknownKeys.Key
  • UnknownKeys.Section
  • UnknownKeys.Nested
  • UnknownKeys.Suggest
  • UnknownKeys.Misplaced
  • UnknownKeys.ReadAs
  • UnknownKeys.OneLine

The structure the server holds the configuration in. JSON keys are shown; they are not the config.yaml keys above.

Keys are the JSON keys. Optional marks keys that are omitted when empty, or that may be absent (pointers).

Config represents the complete runtime configuration

Source: eaxScada/internal/config/config.go

Key Type Optional Description
tier string Tier is legacy: the “tier:” key of older configuration files and the SCADA_TIER variable are still read, but they never set the edition (the verified licence does: internal/edition). main logs that they are ignored. Empty when neither is set.
server ServerConfig
nats NATSConfig
tag_engine TagEngineConfig
historian HistorianConfig
security SecurityConfig
ha HAConfig
metrics MetricsConfig
health HealthConfig
logging LoggingConfig
assistant AssistantConfig
licence LicenceConfig
studio StudioConfig
cloud CloudConfig
plc PLCConfig
reports ReportsConfig
analytics AnalyticsConfig
site SiteConfig
is_zero_config_bootstrapped boolean
source_path string
unknown_keys list of UnknownKey yes UnknownKeys: the file’s keys no reader reads (typos, keys of other releases) and the known keys read in another section than the one they stand in, in file order. Never an error: WarnUnknownKeys names them.
production ProductionConfig Production: the OEE and downtime service (production.go).

ServerConfig defines the HTTP gateway and Web Studio parameters

Source: eaxScada/internal/config/config.go

Key Type Optional Description
host string
port integer
web_dir string
auto_open_browser boolean
allowed_origins list of string AllowedOrigins: browser origins besides the server’s own (“https://hmi.plant.example”) whose pages may open the /ws live-data socket and send state-changing requests (POST, PUT, PATCH, DELETE) authenticated by the session or station cookie, sign-in included. The server’s own origin is always allowed; everything else is refused (403 cross_origin).
trusted_proxies list of string TrustedProxies: reverse proxies (CIDRs or addresses) whose X-Forwarded-For / X-Real-IP / X-Forwarded-Proto / X-Forwarded-Host headers are believed for the client address (audit, lockout, rate limits, the /metrics localhost rule) and for the server’s own origin in both origin checks (the /ws socket and cookie-authenticated state-changing requests). Empty (the default): those headers are ignored.
ws_max_per_session integer WSMaxPerSession: concurrent /ws sockets per session; past it a socket is closed with 1008. 0: the default (8); negative: no cap.
ws_max_per_ip integer WSMaxPerIP: concurrent /ws sockets per client address; past it a socket is closed with 1008. 0: the default (32); negative: no cap.
ws_send_queue integer WSSendQueue: messages a /ws socket may have waiting to be written; past it the socket is closed with 1013 (too slow) and the browser reconnects. 0: the default (4096).
ws_batch_ms integer WSBatchMS: tag updates are coalesced per /ws socket over this window (latest value per tag); 50-1000, 0: the default (100).
ws_max_tags integer WSMaxTags: tags one /ws socket may subscribe to; 0: the default (50000), at most 500000.
ws_max_views integer WSMaxViews: views (pages, popups, docks, widgets) one /ws socket may subscribe for; 0: the default (256), at most 4096.
ws_max_prefixes integer WSMaxPrefixes: prefix entries (“Plant/Line1/*”) one view may hold; 0: the default (16), at most 256.

NATSConfig defines embedded NATS messaging and UNS parameters

Source: eaxScada/internal/config/config.go

Key Type Optional Description
host string
port integer
http_port integer
http_host string HTTPHost: the interface the NATS monitoring port (http_port) listens on. It has no authentication, so it stays on 127.0.0.1 even when the client port listens on every interface (containers set NATS_HOST= 0.0.0.0); /metrics serves the same figures with authentication.
cluster ClusterConfig
leaf_nodes list of string
telemetry_buffer integer TelemetryBuffer: the most bytes the in-memory replay buffer of uns.telemetry.> (JetStream stream TELEMETRY, 10 minutes at most) holds; the oldest messages go first. Default 64MB, at least 1MB.
start_timeout duration (integer, nanoseconds) StartTimeout: how long the server waits at start for the embedded broker to accept connections before it gives up (and exits with “embedded broker failed to start”). Default 10s, at least 1s; raise it on a slow machine or a large JetStream store.

TagEngineConfig defines L1 lock-free tag engine parameters

Source: eaxScada/internal/config/config.go

Key Type Optional Description
capacity integer
deadband_default number
max_tags integer 0 = unlimited across all tiers

HistorianConfig defines L2 time-series storage parameters

Source: eaxScada/internal/config/config.go

Key Type Optional Description
engine string (withheld: names a third-party library)
path string
tde_encryption TDEConfig
export_allowed_dirs list of string ExportAllowedDirs are the folders the historian export may be set to write to. Set here, in the server config file - not from the web UI. Empty: the SCADA data folder only.
extension_dir string ExtensionDir is the folder holding the storage extensions that encryption at rest loads. The historian never downloads them, so an offline install works with the folder the package ships. Empty: the historian_ext folder next to the server executable. The environment variable EAX_HISTORIAN_EXT_DIR overrides it.
retention duration (integer, nanoseconds) Retention: whole UTC days of history older than this are purged (CSV partitions and the columnar store alike; never today or yesterday). 0 (“unlimited”) keeps history forever: the default of a config file without the key. New installs are written with 90d.
retention_overrides list of RetentionOverride RetentionOverrides: per tag or path pattern (“- Area/Line/*=30d”), the most specific pattern wins; “unlimited” keeps that history forever.
max_size integer MaxSize: the historian’s disk budget in bytes (“50GB”; 1 GB = 1024 MB). Over it the oldest days are purged down to disk.quota_target. 0: no budget.
purge_interval duration (integer, nanoseconds) PurgeInterval: how often the retention purge runs (default 1h).
disk HistorianDiskConfig
store HistorianStoreConfig
logging HistorianLoggingConfig
export HistorianExportScheduleConfig
snapshot HistorianSnapshotConfig Snapshot: the nightly copy of the columnar store (on by default).
spool HistorianSpoolConfig Spool: points the columnar store does not take wait there, on disk.

SecurityConfig defines authentication and 21 CFR Part 11 audit trail storage

Source: eaxScada/internal/config/config.go

Key Type Optional Description
data_dir string
audit_data_dir string
audit_memory_records integer AuditMemoryRecords: the most recent audit records the ledger keeps in memory, a whole number of records. Older records stay in the ledger file and are read from it (slower). 0: the default, 10000 records. A negative or unreadable value is refused: the server does not start.
audit_memory_bytes integer AuditMemoryBytes: the most memory the ledger’s recent records take, in bytes or as a size (“64MiB”, “256MB”). The window holds records until this or audit_memory_records is reached, whichever comes first. 0: the default, 64 MiB. A negative or unreadable value (also “unlimited”) is refused: the server does not start.

HAConfig defines High-Availability, lease election, and node quorum parameters

Source: eaxScada/internal/config/config.go

Key Type Optional Description
enabled boolean
node_id string
role string “primary”, “standby”, “witness”
cluster_size integer
lease_ttl duration (integer, nanoseconds)
heartbeat_interval duration (integer, nanoseconds)
public_url string PublicURL: this node’s web address as users reach it (e.g. https://scada-a.plant.local:8080). The standbys name it when an engineer tries to change the configuration on them. Optional.

MetricsConfig: the Prometheus endpoint GET /metrics and the System Health history. /metrics is in every edition and never anonymous by default: an Lead_Engineer or Administrator session, or the read-only metrics token.

Source: eaxScada/internal/config/config.go

Key Type Optional Description
enabled boolean
token_file string TokenFile holds the read-only scrape token (Authorization: Bearer <token>); “” means no token, sessions only.
allow_localhost boolean AllowLocalhost serves /metrics without credentials to callers on the loopback interface (a node-local agent). Off by default.
history_interval duration (integer, nanoseconds) HistoryInterval: how often the System Health history is sampled into the historian (System/Health/<node>/…). 0 turns the history off.
history_retention duration (integer, nanoseconds) HistoryRetention: how long that history is kept.

HealthConfig: the PC resources System Health watches (the disk lines are historian.disk’s).

Source: eaxScada/internal/config/config.go

Key Type Optional Description
interval duration (integer, nanoseconds) sampling, default 10s
cpu_high_percent number default 90
cpu_high_for duration (integer, nanoseconds) default 10m
memory_low_percent number available, default 10
memory_low_for duration (integer, nanoseconds) default 1m

LoggingConfig: the operational log (not the Part 11 audit trail).

Source: eaxScada/internal/config/config.go

Key Type Optional Description
level string debug, info, warn, error
console_format string text or json
file string File: the JSON log file (rotated at 10 MB, 5 old files kept). A relative path is under the work directory (--workdir). Default logs/eaxScada.log. The folder is created; a path that cannot be written stops the server at start.
file_enabled boolean FileEnabled: false writes no log file. The console (the journal under systemd, the container log under Docker), the log table (/api/logs) and the syslog export stay. Default true.
syslog SyslogConfig

AssistantConfig: the AI assistant (the full build, in the Free, Pro and Enterprise editions; the standard build has none whatever this says).

Source: eaxScada/internal/config/config.go

Key Type Optional Description
enabled boolean Enabled: false switches the assistant off on this server: its store (data/assistant, data/security/assistant.key) is not opened and every /api/assistant/* route answers 404. Default true.

LicenceConfig: where the licence file is (licence.file). Empty: the default, data/licence/licence.json under the working directory. The file is verified whatever its location; moving it raises nothing.

Source: eaxScada/internal/config/config.go

Key Type Optional Description
file string

StudioConfig: what the studio and the operator runtime open first.

Source: eaxScada/internal/config/config.go

Key Type Optional Description
default_screen string DefaultScreen: the screen id the Designer opens when the browser has no last-opened screen, and the plain /runtime (no project, page or screen in the address) opens. Empty: the project’s startup page. Environment: EAX_STUDIO_DEFAULT_SCREEN.
live_preview_default boolean LivePreviewDefault: the Designer opens with Live Preview on (bound values follow the live tags). Default false. Also per visit with ?live=1 in the studio address.

CloudConfig: the eaxCloud link (Settings > Cloud; internal/cloudlink). The link is outbound only: the server publishes its heartbeat to the cloud and nothing from the cloud reaches the plant.

Source: eaxScada/internal/config/config.go

Key Type Optional Description
enabled boolean Enabled: false keeps the link off even when this server is enrolled (default true). An unreadable value means false.
data_dir string DataDir holds the node key (it never leaves this folder), the cloud credentials and the link state. Default: data/cloud.
remote_control CloudRemoteControl RemoteControl: the site’s own switches for remote access from the cloud. All off by default; changed in Settings > Cloud by a local administrator, each change recorded in the audit trail; the cloud cannot change them (strategy/eaxcloud-remote-access-design.md §3.8).

PLCConfig: the eaxPLCs this server works with.

Source: eaxScada/internal/config/config.go

Key Type Optional Description
accept_simulated boolean AcceptSimulated: take in the values of a simulated eaxPLC (one an eaxsim host runs for virtual commissioning; it says “simulated”: true), every tag from it marked Simulated. Off by default: such a PLC’s values are refused (internal/plcsim), so a simulation is never shown as the plant. Changed in Settings > Simulated PLCs by an administrator, audited. An unreadable value means false.

ReportsConfig is the reports: section.

Source: eaxScada/internal/config/reports.go

Key Type Optional Description
enabled boolean Enabled: the module runs on this server (default true). The edition decides whether it may (Pro and Enterprise); false turns it off on a licensed server.
workers integer Workers: report runs rendered at the same time (default 2, 1-64).
queue integer Queue: runs waiting for a worker; more are refused (default 20, 1-10000).
chart_vms integer ChartVMs: script engines that render report charts (default 2, 1-32).
query_timeout duration (integer, nanoseconds) QueryTimeout: the longest a dataset query of an on-demand run or preview may take (default 60s).
scheduled_query_timeout duration (integer, nanoseconds) ScheduledQueryTimeout: the same for a scheduled run (default 300s).
run_timeout duration (integer, nanoseconds) RunTimeout: the longest a whole run may take, queries and rendering (default 10m; at least query_timeout and scheduled_query_timeout).
max_window duration (integer, nanoseconds) MaxWindow: the longest time range a report parameter may span (“400d”, the default; “2w”, “36h”).
max_pages integer MaxPages: the most pages of one PDF (default 2000).
max_result_bytes integer MaxResultBytes: the most bytes one dataset result may hold in memory (“256MiB”, the default).
pdf ReportsPDF
xlsx ReportsXLSX
preview ReportsPreview
archive ReportsArchive
folders ReportsFolders
email ReportsEmail
fonts ReportsFonts
shifts map of string to list of ReportsShift yes Shifts is reports.shifts: the site’s shift calendars by name (a schedule’s shift_end trigger names one; the this_shift and last_shift defaults use “default”). Default none.

AnalyticsConfig is the analytics: section (the analytics workspace).

Source: eaxScada/internal/config/reports.go

Key Type Optional Description
max_rows integer MaxRows: the most rows an ad-hoc query returns (default 100000).
extract_rows integer ExtractRows: the most rows a user’s extracts hold together, over the whole session (cross-source queries; default 2000000).
extract_bytes integer ExtractBytes: the most bytes a user’s extracts hold together (“512MiB”, the default; at most 4GiB). The extracts are held in the server’s memory, one in-memory database per user.
extract_idle duration (integer, nanoseconds) ExtractIdle: a user’s extracts unused for this long are dropped (“30m”, the default; 5m to 24h).
extract_per_user integer ExtractPerUser: the most extracts one user holds at once (default 8; 1 to 32).
extract_sessions integer ExtractSessions: the most users holding extracts at once, server-wide (default 4; 1 to 64). Each session’s in-memory database may take 2 x extract_bytes + 256MiB: the worst case is extract_sessions times that, refused above 16GiB.
query_timeout duration (integer, nanoseconds) QueryTimeout: an ad-hoc query’s time limit (“60s”, the default).
per_user integer PerUser: running queries per user (default 1).
workers integer Workers: running queries on the server (default 2).
export AnalyticsExport

SiteConfig is the site: section.

Source: eaxScada/internal/config/reports.go

Key Type Optional Description
time_zone string TimeZone: the plant’s time zone, an IANA name (“Europe/Paris”) or “UTC”; reports print times in it. Empty: the server’s own zone.

UnknownKey is a key of the configuration file that no reader reads.

Source: eaxScada/internal/config/known_keys.go

Key Type Optional Description
line integer
key string dotted path, “historian.retenion”
section boolean yes Section: an unknown section header; Nested keys under it are not named one by one (they are all ignored with it).
nested integer yes
suggest string yes Suggest: the known key the name is close to (edit distance 2 at most), “” when none.
misplaced boolean yes Misplaced: a known key the parser reads in another section than the one its indentation puts it in. The parser reads every key where it stands (it used to read nats.port below nats.cluster: as the cluster’s port); this stays as a guard, so a parser change that misreads a key is named at start-up. ReadAs is the key it is read as, “” when it is not read at all.
read_as string yes
one_line boolean yes OneLine: a key of listConfigKeys given a value on its own line; the parser reads only its “- “ items.

ProductionConfig is the production: section of config.yaml: the OEE and downtime service (strategy/mes-design.md §5.4, §13.4; work package W4). This section is server environment (config.yaml, not carried by project checkpoints). The machines, reasons, plans, ideal cycles and settings are not here: they are project content, the configuration domain “production” (saved under data/production/config, replicated to the HA nodes and carried by the project checkpoints). The service runs when the licence allows the production feature (Pro, Enterprise), Enabled is true and at least one machine is configured; otherwise nothing is started and nothing is created.

production:
enabled: true
backfill\_days: 30
settle: 2s
write\_interval: 10s
hook\_queue: 65536
retention:
intervals: 400d
analytics database:
memory\_limit: 512MB

Source: eaxScada/internal/config/production.go

Key Type Optional Description
enabled boolean Enabled: run the OEE and downtime service on this server (default false: an install that does not use it starts nothing).
backfill_days integer BackfillDays: how far back a newly configured machine is computed from the history (default 30, 0-400).
settle duration (integer, nanoseconds) Settle: rows are final up to now minus this (default 2s, 100ms-60s).
write_interval duration (integer, nanoseconds) WriteInterval: how often the final rows are written (default 10s, 1s-10m).
hook_queue integer HookQueue: the logged points of source tags buffered between two takes of the service (default 65536, 1024-16777216); when full, the machines of the points not kept are recomputed from the historian.
retention ProductionRetention
(withheld: names a third-party library) ProductionDatabase

ClusterConfig defines native NATS horizontal clustering options

Source: eaxScada/internal/config/config.go

Key Type Optional Description
enabled boolean
name string
port integer
listen string
advertise string
routes list of string
no_advertise boolean

TDEConfig defines Transparent Data Encryption parameters for historian storage

Source: eaxScada/internal/config/config.go

Key Type Optional Description
enabled boolean
cipher string
key_file string
key_env string
key string

RetentionOverride is one per-tag retention (historian.retention_overrides).

Source: eaxScada/internal/config/config.go

Key Type Optional Description
pattern string
retention duration (integer, nanoseconds) 0: forever

HistorianDiskConfig: the free space of the volume holding the historian (and of every volume the server writes to, for the system alarms).

Source: eaxScada/internal/config/config.go

Key Type Optional Description
warn_free FreeThreshold WarnFree: under it, the “disk space low” system alarm (default 15%).
critical_free FreeThreshold CriticalFree: under it, the “disk space critical” alarm, the emergency purge (PurgeOnCritical) and the pause of historian logging (PauseOnCritical) until space returns (default 5%).
purge_on_critical boolean PurgeOnCritical: delete the oldest days (CSV partitions first, never today or yesterday) when the disk is critical. Default false; new installs are written with true.
pause_on_critical boolean PauseOnCritical: stop writing history while the disk is critical (tag values, alarms and control go on). Default true.
quota_target number QuotaTarget: what an over-budget purge goes down to, as a fraction of max_size (default 90%).
check_interval duration (integer, nanoseconds) CheckInterval: how often the disk is checked (default 1m).

HistorianStoreConfig caps the columnar store (historian.store).

Source: eaxScada/internal/config/config.go

Key Type Optional Description
memory_limit string MemoryLimit, e.g. “1GB”. Empty: the store’s default, 25% of the physical memory, at least 512 MiB, at most 4 GiB (duckstore.ResolveMemoryCap). Past it the store spills to disk.
threads integer Threads, e.g. 2. 0: one per 64 MiB of the memory cap, at most every core (a thread with less memory cannot spill a large sort to disk).
path_index boolean PathIndex: the (tag, time) index of the store. It made up about 90% of the file without speeding up trend queries; false drops it (new installs). Default true: an existing store is left as it is.
checkpoint_interval duration (integer, nanoseconds) CheckpointInterval: how often the write-ahead log is written into the file and deleted rows’ blocks are freed for reuse (default 1h).

HistorianLoggingConfig: the logging policy of tags no historian logging rule matches. Zero values log every update the tag engine passes on (the default of a config file without the keys).

Source: eaxScada/internal/config/config.go

Key Type Optional Description
default_min_interval duration (integer, nanoseconds) at most one point per interval (the latest is kept)
default_deadband number absolute; 0 with a policy set: log changes only
default_max_interval duration (integer, nanoseconds) a point at least this often for a steady value

HistorianExportScheduleConfig: the daily export of closed days to Hive partitions (<dir>/year=/month=/day=/data.parquet).

Source: eaxScada/internal/config/config.go

Key Type Optional Description
enabled boolean
schedule string local time “HH:MM”, default 02:00
dir string must be inside historian.export_allowed_dirs
format string parquet or csv
keep_days integer
compress boolean

HistorianSnapshotConfig: the nightly snapshot of the historian’s columnar store (historian.snapshot; historian/snapshot.go). On by default, in every config file: the store must never be the only copy of the history.

Source: eaxScada/internal/config/config.go

Key Type Optional Description
enabled boolean
schedule string local time “HH:MM”, default 01:30
dir string default ./data/backup/historian
keep integer snapshots kept, default 2

HistorianSpoolConfig: historian.spool (historian/spool.go).

Source: eaxScada/internal/config/config.go

Key Type Optional Description
max_size integer bytes; default 2 GB

SyslogConfig: the optional RFC 5424 export of the operational log.

Source: eaxScada/internal/config/config.go

Key Type Optional Description
enabled boolean
network string udp, tcp or tls
address string host:port
facility integer
app_name string
level string debug, info, warn, error
ca_file string

CloudRemoteControl: what the cloud may do on this site. The zero value is the safest setting: every switch off, local acceptance on, no co-sign relaxed, no duration change. An unreadable value is read as the more restrictive one. Use Effective for what is in force.

Source: eaxScada/internal/config/config.go

Key Type Optional Description
view boolean View: see this site’s screens and values from the cloud.
operate boolean Operate: send operator commands from the cloud, with this site’s own sign-in and e-signature. Needs View.
engineer boolean Engineer: change and deploy this site’s project from the cloud. Needs View.
confirmed integer Confirmed: CloudRemoteConfirmed when an administrator set the switches with remote access in place; below it every switch is off.
local_accept_off boolean LocalAcceptOff: operate and engineer sessions start without a local person accepting them (config.yaml local_accept: false, for unattended sites). Off by default: a person on site accepts.
max_minutes integer MaxMinutes: when above 0, no remote session lasts longer than this (it can only shorten the built-in limits).
cosign_deploys boolean CosignDeploys: a remote deploy or live engineering change needs an approved review by another site user, whatever the edition.
cosign_writes boolean CosignWrites: a remote tag write needs another site user’s approval.

ReportsPDF is reports.pdf.

Source: eaxScada/internal/config/reports.go

Key Type Optional Description
max_rows integer MaxRows: the most dataset rows a PDF report reads (default 100000).
max_table_rows integer MaxTableRows: the most rows one PDF table prints (default 20000, at most max_rows).

ReportsXLSX is reports.xlsx.

Source: eaxScada/internal/config/reports.go

Key Type Optional Description
max_rows integer MaxRows: the most rows of an Excel report (default 1000000).

ReportsPreview is reports.preview.

Source: eaxScada/internal/config/reports.go

Key Type Optional Description
max_rows integer MaxRows: the most rows of a dataset or report preview (default 10000).

ReportsArchive is reports.archive.

Source: eaxScada/internal/config/reports.go

Key Type Optional Description
dir string Dir: the folder of the archived report files (default data/reports/archive).
quota integer Quota: the archive’s disk budget (“20GiB”, the default; more than 0). The storage alarm is active from 80 % of it; a run that would pass it is not archived; nothing is deleted to make room.
min_free integer MinFree: the free space the archive always leaves on its volume (“2GiB”, the default; more than 0). The floor is the larger of it and the historian’s critical_free on that volume: a report is not archived when writing it would go under the floor.
retention ReportsRetention
pdfa boolean PDFA: archived PDFs are PDF/A (default true).

ReportsFolders is reports.folders.

Source: eaxScada/internal/config/reports.go

Key Type Optional Description
allowed list of string Allowed: the only folders reports may be delivered to (absolute paths; default none). No path from a request is ever used.

ReportsEmail is reports.email.

Source: eaxScada/internal/config/reports.go

Key Type Optional Description
smtp ReportsSMTP
attachments boolean Attachments: messages may carry the report file (default false: a link to the Archive entry, which needs sign-in).
allowed_domains list of string AllowedDomains: the domains external addresses may have (default none: no external delivery).
max_attachment integer MaxAttachment: the largest attached file (“10MiB”, the default).
base_url string BaseURL: the address users open eaxScada at (“https://scada.example.com”), from which a link-mode message builds the Archive entry’s link (default none: link-mode messages are refused, internal/reports/deliver).

ReportsFonts is reports.fonts.

Source: eaxScada/internal/config/reports.go

Key Type Optional Description
extra_dirs list of string ExtraDirs: folders of additional report fonts (absolute paths; default none).

ReportsShift is one shift of a calendar: its name and the wall-clock time it starts every day in the site’s time zone. A shift ends where the next one of its calendar starts (the last one at the first one’s start the next day). In config.yaml:

reports:
shifts:
default:
- early 06:00
- late 14:00
- night 22:00

or inline: default: early 06:00, late 14:00, night 22:00.

Source: eaxScada/internal/config/reports.go

Key Type Optional Description
name string
start_minute integer StartMinute: minutes after midnight (0-1439) of the shift’s start.

AnalyticsExport is analytics.export.

Source: eaxScada/internal/config/reports.go

Key Type Optional Description
max_rows integer MaxRows: the most rows of one export (default 1000000).
max_bytes integer MaxBytes: the largest export (“512MiB”, the default; at most 4GiB). An export’s result is held in the server’s memory up to this size while its file is written.
workers integer Workers: exports running at once on the server (default 1; the others wait, queued).
dir string Dir: the folder of the users’ export files (default data/analytics/exports): inside the data folder, or absolute.
keep duration (integer, nanoseconds) Keep: how long an export file is kept before it is swept (“24h”, the default; swept at start and every 10 minutes).

ProductionRetention is production.retention.

Source: eaxScada/internal/config/production.go

Key Type Optional Description
intervals duration (integer, nanoseconds) Intervals: how long the state intervals are kept (default 400d, at least 1d); slices and events are kept.

(withheld: names a third-party library)

Source: eaxScada/internal/config/production.go

Key Type Optional Description
memory_limit string MemoryLimit: production file’s memory cap, e.g. “1GB”. Empty: the store’s default, 512 MiB (duckstore.ResolveMemoryCap). Past it the store spills to disk.

FreeThreshold is a free-space limit: a percentage of the volume, a size, or both (“5%, 5GB”: the larger applies). Zero: off.

Source: eaxScada/internal/config/config.go

Key Type Optional Description
percent number
bytes integer

ReportsRetention is reports.archive.retention. 0 is “never”: the files are kept until purged by hand.

Source: eaxScada/internal/config/reports.go

Key Type Optional Description
standard duration (integer, nanoseconds) Standard: how long an unsigned archived report is kept (“3y”, the default; “never”; at least 1 day).
signed duration (integer, nanoseconds) Signed: how long a signed report is kept (“never”, the default).

ReportsSMTP is reports.email.smtp. Empty host: no e-mail delivery.

Source: eaxScada/internal/config/reports.go

Key Type Optional Description
host string
port integer Port: default 587.
starttls boolean StartTLS: upgrade the connection before anything is sent (default true). A server that does not offer it is refused.
allow_plain boolean AllowPlain: starttls false is accepted, for a relay on this machine only (host localhost or a loopback address), never with a username (default false: starttls false is refused).
username string
password_ref string PasswordRef: the name of the password in the server’s secret store, never the password itself.
from string From: the sender address (required with a host).