Skip to main content

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.

KeyWhat it doesValueRequired
isAuditingTells OPC UA clients that the server supports auditing. The gateway does not send audit events itself.true or false
alternateHostnameOne 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
timeoutThe 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
maxConnectionsPerEndpointThe maximum number of simultaneous connections for each endpoint. The default is 10.number
hostnameThe 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
registerServerMethodHow 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
advertisedEndpointsExtra 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
reverseConnectMakes 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
hostThe address that the gateway listens on. The default is all network interfaces.text
resourcePathA 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
securityModesThe 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
securityPoliciesThe 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
maxAllowedSessionNumberThe hard limit of simultaneous sessions. The gateway refuses a new session above this number. serverCapabilities.maxSessions only tells clients a value.number
disableDiscoveryWith true, the gateway turns off the discovery services (GetEndpoints and FindServers) on secure channels.true or false
discoveryServerEndpointUrlThe URL of the local discovery server (LDS) where the gateway registers. Use it with registerServerMethod: LDS.text
allowAnonymousWith 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
defaultSecureTokenLifetimeThe time in ms between two renewals of the security token of a secure channel. Change it only if you need to.number
enablePubsubWith 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
buildInfoThe name, manufacturer and version that OPC UA clients show for this server.Server identity
serverCapabilitiesThe 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.

KeyWhat it doesValueRequired
urlThe endpoint URL to give to clients, for example opc.tcp://edge.plant.local:14840.text
securityModesThe 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
securityPoliciesThe 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
allowAnonymousWith 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.

KeyWhat it doesValueRequired
connectionsThe OPC UA client listeners that the gateway connects to. Add one entry for each listener.list of reverse connection
reconnectDelayThe time in ms that the gateway waits before it connects again after a socket closes. The default is 5000.number
maxReconnectDelayThe largest time in ms between two connection attempts. The delay grows up to this value. The default is 60000.number
connectionTimeoutThe 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.

KeyWhat it doesValueRequired
productNameThe product name that OPC UA clients show.text
productUriA globally unique URI that identifies the product.text
manufacturerNameThe manufacturer name that OPC UA clients show.text
softwareVersionThe software version that the gateway reports to clients.text
buildNumberThe build number that the gateway reports to clients.text
buildDateThe 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.

KeyWhat it doesValueRequired
maxBrowseContinuationPointsThe number of browse continuation points that the gateway keeps for each session.number
maxHistoryContinuationPointsThe number of history continuation points that the gateway keeps for each session.number
maxStringLengthThe longest String value that the gateway accepts or returns.number
maxArrayLengthThe longest array value that the gateway accepts or returns.number
maxByteStringLengthThe longest ByteString value that the gateway accepts or returns.number
maxQueryContinuationPointsThe number of query continuation points that the gateway keeps for each session.number
minSupportedSampleRateThe shortest sampling interval in ms that the gateway accepts.number
operationLimitsThe 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
maxSessionsThe number of simultaneous sessions that the server supports in normal conditions. The server cannot always guarantee it.number
maxSubscriptionsThe number of subscriptions that the server supports in normal conditions. The server cannot always guarantee it.number
maxMonitoredItemsThe number of monitored items that the server supports in normal conditions. The server cannot always guarantee it.number
maxSubscriptionsPerSessionThe number of subscriptions in one session that the server supports in normal conditions. The server cannot always guarantee it.number
maxMonitoredItemsPerSubscriptionThe number of monitored items in one subscription that the server supports in normal conditions. The server cannot always guarantee it.number
maxSelectClauseParametersThe number of select-clause parameters that an event filter can have. The server cannot always guarantee it.number
maxWhereClauseParametersThe number of where-clause parameters that an event filter can have. The server cannot always guarantee it.number
maxMonitoredItemsQueueSizeThe largest size of the queue of one monitored item. The server cannot always guarantee it.number
conformanceUnitsThe 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.

KeyWhat it doesValueRequired
endpointUrlThe reverse-connect listener of the OPC UA client, for example opc.tcp://scada-host:8888.textyes

Request size limits​

The largest number of nodes that one request of each type can address. A larger request gets Bad_TooManyOperations.

KeyWhat it doesValueRequired
maxNodesPerReadThe largest number of nodes in one Read request.number
maxNodesPerBrowseThe largest number of nodes in one Browse request.number
maxNodesPerWriteThe largest number of nodes in one Write request.number
maxNodesPerMethodCallThe largest number of nodes in one Call request.number
maxNodesPerRegisterNodesThe largest number of nodes in one RegisterNodes request.number
maxNodesPerNodeManagementThe largest number of nodes in one AddNodes or DeleteNodes request.number
maxMonitoredItemsPerCallThe largest number of monitored items in one request.number
maxNodesPerHistoryReadDataThe largest number of nodes in one HistoryRead request for data.number
maxNodesPerHistoryReadEventsThe largest number of nodes in one HistoryRead request for events.number
maxNodesPerHistoryUpdateDataThe largest number of nodes in one HistoryUpdate request for data.number
maxNodesPerHistoryUpdateEventsThe largest number of nodes in one HistoryUpdate request for events.number
maxNodesPerTranslateBrowsePathsToNodeIdsThe largest number of browse paths in one TranslateBrowsePaths request.number