GateHub configuration is stored in ./dist/config.js and - if necessary - can be overriden directly in file, or using environment variables (with parameter names in upper snake case - i.e. discoveryPort should be DISCOVERY_PORT). By default, Local Server is configured as follows:
hubDiscoveryPort: 10000
discoveryKeyword: GateServer
discoveryPort: 10001
discoveryInterval: 5000
useFixedUrl: false
fixedUrl: localhost:10002
Meaning of parameters:
hubDiscoveryPort - port on which GateHub will wait for GET requests from devices/controllers
discoveryKeyword - identifier of server to which SerialGateDevices will be connected
discoveryPort - port on which GateHub will listen to discovery messages
discoveryInterval - expected interval of sending discovery messages (milliseconds)
useFixedUrl - if set to "true", GateHub will connect SerialGateDevices to fixedUrl instead of using discovery
fixedUrl - fixed server location. Has no effect if useFixedUrl is false