|
Motion Master 6.0.0-alpha.86
Next-generation motion control software
|
"server" block — the HTTP API and WebSocket listeners.
More...
#include <config.h>
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" |
"server" block — the HTTP API and WebSocket listeners.
| 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.
| std::string ServerConfig::corsOrigin = "https://motion-master.synapticon.com" |
| uint16_t ServerConfig::httpPort = 61447 |
| uint16_t ServerConfig::wsPort = 62281 |