Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
ServerConfig Struct Reference

"server" block — the HTTP API and WebSocket listeners. More...

#include <config.h>

Collaboration diagram for ServerConfig:
[legend]

Public Attributes

std::string bindAddress = "127.0.0.1"
 
uint16_t httpPort = 61447
 
uint16_t wsPort = 62281
 
std::string corsOrigin = "https://motion-master.synapticon.com"
 

Detailed Description

"server" block — the HTTP API and WebSocket listeners.

Member Data Documentation

◆ bindAddress

std::string ServerConfig::bindAddress = "127.0.0.1"

Local address both listeners bind to. The default keeps Motion Master reachable only from the machine it runs on, which is what local.motion-master.synapticon.com (an A record pinned to 127.0.0.1) is for. Set "0.0.0.0" to serve the whole network — the appliance deployment, where a browser elsewhere on the LAN drives the bus and reaches this host as <dashed-ip>.ip.motion-master.synapticon.com. The bundled certificate covers both names, so TLS needs no further configuration either way.

Motion Master has no authentication: anything that can reach the port can enable drives. Bind off loopback only on a network you trust.

◆ corsOrigin

std::string ServerConfig::corsOrigin = "https://motion-master.synapticon.com"

◆ httpPort

uint16_t ServerConfig::httpPort = 61447

◆ wsPort

uint16_t ServerConfig::wsPort = 62281

The documentation for this struct was generated from the following file: