serverOptions
These keys set up the OPC UA server itself: how OPC UA clients find it and connect to it, which security it offers, which limits it applies and which name it shows. They do not change how the gateway reads devices. Every key is optional.
Example
port: 4840
serverOptions:
buildInfo:
productName: Line 3 gateway
allowAnonymous: false
securityModes: [SignAndEncrypt]
The value
serverOptions: is the server options.
The server options
The settings of the OPC UA server: network address, endpoints, security, limits and identity.
| Key | What it does | Value | Required |
|---|---|---|---|
isAuditing | Tells OPC UA clients that the server supports auditing. The gateway does not send audit events itself. | true or false | |
alternateHostname | One host name or a list of host names that clients use to reach the gateway, in addition to the host name of the machine. The gateway adds them to its certificate and to the endpoint list. Use it with NAT, a container or a DNS alias. | text or list of text | |
timeout | The time limit in ms for the first exchange (Hello and Acknowledge) when a client opens a connection. For a slow link or an embedded device, use a large value such as 15000. Change it only if you need to. | number | |
maxConnectionsPerEndpoint | The maximum number of simultaneous connections for each endpoint. The default is 10. | number | |
hostname | The host name that the gateway writes in its endpoint URLs. The default is the host name of the machine. Set it when that name is wrong for your clients. | text | |
registerServerMethod | How the gateway announces itself on the network. HIDDEN does not announce. MDNS announces on the local network. LDS registers with a discovery server. NONE is accepted in an old configuration file and means HIDDEN. | HIDDEN, MDNS, LDS, NONE | |
advertisedEndpoints | Extra endpoint URLs that the gateway gives to OPC UA clients, each with its own host and port. Use it with Docker port mapping, NAT or a reverse proxy. The gateway still listens on port:. It adds the host names to its self-signed certificate. The variable OMNI_EDGE_ADVERTISED_ENDPOINTS (URLs separated by commas) adds more at run time. | advertised endpoint | |
reverseConnect | Makes the gateway open the connection to an OPC UA client that listens (Reverse Connect). The gateway then needs no open inbound port. Without a connection here, the gateway connects to nothing. The variable OMNI_EDGE_REVERSE_CONNECT (URLs separated by commas) adds more targets at run time. | Reverse Connect | |
host | The address that the gateway listens on. The default is all network interfaces. | text | |
resourcePath | A path added at the end of every endpoint URL, for example /UA/OmniEdge. The default is no path. Each advertised endpoint must use the same path. | text | |
securityModes | The message security modes that every endpoint offers. None sends data in clear text. Sign adds a signature. SignAndEncrypt signs and encrypts. The default is all three. | list of None, Sign, SignAndEncrypt | |
securityPolicies | The security policies that every endpoint offers. None has no security. Basic128Rsa15 and Basic256 are old policies. Basic256Sha256, Aes128_Sha256_RsaOaep and Aes256_Sha256_RsaPss are current policies. The default is the set of node-opcua. | list of None, Basic128Rsa15, Basic256, Basic256Sha256, Aes128_Sha256_RsaOaep, Aes256_Sha256_RsaPss | |
maxAllowedSessionNumber | The hard limit of simultaneous sessions. The gateway refuses a new session above this number. serverCapabilities.maxSessions only tells clients a value. | number | |
disableDiscovery | With true, the gateway turns off the discovery services (GetEndpoints and FindServers) on secure channels. | true or false | |
discoveryServerEndpointUrl | The URL of the local discovery server (LDS) where the gateway registers. Use it with registerServerMethod: LDS. | text | |
allowAnonymous | With false, a client must log in with a user name and password or with an X509 user certificate. With true, anonymous clients can connect. | true or false | |
defaultSecureTokenLifetime | The time in ms between two renewals of the security token of a secure channel. Change it only if you need to. | number | |
enablePubsub | With true, the gateway adds the OPC UA PubSub information model (Server/PublishSubscribe) with no connection. A client can then add connections with the PubSub methods. The gateway publishes no value by itself. To publish values, use the pubsub: section. That section adds the information model too. | true or false | |
buildInfo | The name, manufacturer and version that OPC UA clients show for this server. | Server identity | |
serverCapabilities | The limits that the gateway reports under Server/ServerCapabilities. Clients read them to size their requests. The gateway also enforces them. | Server limits |
An advertised endpoint
An endpoint URL that the gateway gives to OPC UA clients. Use it when clients reach the gateway through another host or port.
| Key | What it does | Value | Required |
|---|---|---|---|
url | The endpoint URL to give to clients, for example opc.tcp://edge.plant.local:14840. | text | |
securityModes | The security modes of this endpoint: None, Sign or SignAndEncrypt. If you omit the key, the endpoint takes the modes of serverOptions.securityModes. | list of None, Sign, SignAndEncrypt | |
securityPolicies | The security policies of this endpoint. If you omit the key, the endpoint takes the policies of serverOptions.securityPolicies. | list of None, Basic128Rsa15, Basic256, Basic256Sha256, Aes128_Sha256_RsaOaep, Aes256_Sha256_RsaPss | |
allowAnonymous | With false, this endpoint refuses anonymous clients. If you omit the key, the endpoint takes the value of serverOptions.allowAnonymous. | true or false |
Reverse Connect
Settings for a gateway that opens the connection to the OPC UA client, instead of waiting for it.
| Key | What it does | Value | Required |
|---|---|---|---|
connections | The OPC UA client listeners that the gateway connects to. Add one entry for each listener. | list of reverse connection | |
reconnectDelay | The time in ms that the gateway waits before it connects again after a socket closes. The default is 5000. | number | |
maxReconnectDelay | The largest time in ms between two connection attempts. The delay grows up to this value. The default is 60000. | number | |
connectionTimeout | The time in ms that the client has to open a secure channel after the gateway connects. The default is 120000. | number |
Server identity
The product name, manufacturer and version that OPC UA clients show for the gateway.
| Key | What it does | Value | Required |
|---|---|---|---|
productName | The product name that OPC UA clients show. | text | |
productUri | A globally unique URI that identifies the product. | text | |
manufacturerName | The manufacturer name that OPC UA clients show. | text | |
softwareVersion | The software version that the gateway reports to clients. | text | |
buildNumber | The build number that the gateway reports to clients. | text | |
buildDate | The build date that the gateway reports to clients. | text |
Server limits
Limits that the gateway tells OPC UA clients and enforces. Clients read them to size their requests.
| Key | What it does | Value | Required |
|---|---|---|---|
maxBrowseContinuationPoints | The number of browse continuation points that the gateway keeps for each session. | number | |
maxHistoryContinuationPoints | The number of history continuation points that the gateway keeps for each session. | number | |
maxStringLength | The longest String value that the gateway accepts or returns. | number | |
maxArrayLength | The longest array value that the gateway accepts or returns. | number | |
maxByteStringLength | The longest ByteString value that the gateway accepts or returns. | number | |
maxQueryContinuationPoints | The number of query continuation points that the gateway keeps for each session. | number | |
minSupportedSampleRate | The shortest sampling interval in ms that the gateway accepts. | number | |
operationLimits | The largest number of nodes that one request can address, for each type of request. A client that goes above a limit gets Bad_TooManyOperations. | Request size limits | |
maxSessions | The number of simultaneous sessions that the server supports in normal conditions. The server cannot always guarantee it. | number | |
maxSubscriptions | The number of subscriptions that the server supports in normal conditions. The server cannot always guarantee it. | number | |
maxMonitoredItems | The number of monitored items that the server supports in normal conditions. The server cannot always guarantee it. | number | |
maxSubscriptionsPerSession | The number of subscriptions in one session that the server supports in normal conditions. The server cannot always guarantee it. | number | |
maxMonitoredItemsPerSubscription | The number of monitored items in one subscription that the server supports in normal conditions. The server cannot always guarantee it. | number | |
maxSelectClauseParameters | The number of select-clause parameters that an event filter can have. The server cannot always guarantee it. | number | |
maxWhereClauseParameters | The number of where-clause parameters that an event filter can have. The server cannot always guarantee it. | number | |
maxMonitoredItemsQueueSize | The largest size of the queue of one monitored item. The server cannot always guarantee it. | number | |
conformanceUnits | The conformance units that the server supports in its current configuration, as a list of names. | list of text |
A reverse connection
One OPC UA client listener that the gateway connects to.
| Key | What it does | Value | Required |
|---|---|---|---|
endpointUrl | The reverse-connect listener of the OPC UA client, for example opc.tcp://scada-host:8888. | text | yes |
Request size limits
The largest number of nodes that one request of each type can address. A larger request gets Bad_TooManyOperations.
| Key | What it does | Value | Required |
|---|---|---|---|
maxNodesPerRead | The largest number of nodes in one Read request. | number | |
maxNodesPerBrowse | The largest number of nodes in one Browse request. | number | |
maxNodesPerWrite | The largest number of nodes in one Write request. | number | |
maxNodesPerMethodCall | The largest number of nodes in one Call request. | number | |
maxNodesPerRegisterNodes | The largest number of nodes in one RegisterNodes request. | number | |
maxNodesPerNodeManagement | The largest number of nodes in one AddNodes or DeleteNodes request. | number | |
maxMonitoredItemsPerCall | The largest number of monitored items in one request. | number | |
maxNodesPerHistoryReadData | The largest number of nodes in one HistoryRead request for data. | number | |
maxNodesPerHistoryReadEvents | The largest number of nodes in one HistoryRead request for events. | number | |
maxNodesPerHistoryUpdateData | The largest number of nodes in one HistoryUpdate request for data. | number | |
maxNodesPerHistoryUpdateEvents | The largest number of nodes in one HistoryUpdate request for events. | number | |
maxNodesPerTranslateBrowsePathsToNodeIds | The largest number of browse paths in one TranslateBrowsePaths request. | number |