|
Motion Master 6.0.0-alpha.50
Next-generation motion control software
|
Server configuration. More...
#include <http_server.h>
Public Attributes | |
| uint16_t | port = 61447 |
| TCP port to listen on (TLS). | |
| std::string | certFile |
| Path to the TLS certificate (PEM). | |
| std::string | keyFile |
| Path to the TLS private key (PEM). | |
| std::string | version |
Application version string served at GET /api/version. | |
| std::string | startedConfig |
Serialized JSON of the boot config; served at GET /api/config. | |
| InitDeviceManagerFn | initDeviceManager |
Handler for POST /api/init; required for API-driven init. | |
| GetLogFn | getLog |
Handler for GET /api/log; returns buffered log entries. | |
| RefreshCertFn | refreshCert |
Handler for POST /api/cert/refresh; fetches+installs a cert. | |
| GetGameLoopHealthFn | getGameLoopHealth |
Handler for GET /api/game-loop; RT loop health snapshot. | |
| SetGameLoopPeriodFn | setGameLoopPeriod |
| std::string | corsOrigin {"https://motion-master.synapticon.com"} |
Value sent in Access-Control-Allow-Origin. Defaults to the production PWA origin. | |
Server configuration.
| std::string HttpServer::Config::certFile |
Path to the TLS certificate (PEM).
| std::string HttpServer::Config::corsOrigin {"https://motion-master.synapticon.com"} |
Value sent in Access-Control-Allow-Origin. Defaults to the production PWA origin.
| GetGameLoopHealthFn HttpServer::Config::getGameLoopHealth |
Handler for GET /api/game-loop; RT loop health snapshot.
| GetLogFn HttpServer::Config::getLog |
Handler for GET /api/log; returns buffered log entries.
| InitDeviceManagerFn HttpServer::Config::initDeviceManager |
Handler for POST /api/init; required for API-driven init.
| std::string HttpServer::Config::keyFile |
Path to the TLS private key (PEM).
| uint16_t HttpServer::Config::port = 61447 |
TCP port to listen on (TLS).
| RefreshCertFn HttpServer::Config::refreshCert |
Handler for POST /api/cert/refresh; fetches+installs a cert.
| SetGameLoopPeriodFn HttpServer::Config::setGameLoopPeriod |
Handler for PUT /api/game-loop; retimes the RT loop.
| std::string HttpServer::Config::startedConfig |
Serialized JSON of the boot config; served at GET /api/config.
| std::string HttpServer::Config::version |
Application version string served at GET /api/version.