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

Server configuration. More...

#include <http_server.h>

Collaboration diagram for HttpServer::Config:
[legend]

Public Attributes

std::string bindAddress {"127.0.0.1"}
 Local address to bind. Loopback serves only this machine; "0.0.0.0" serves the network.
 
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
 Handler for PUT /api/game-loop; retimes the RT loop.
 
AutoTuningRunFn runAutoTuning
 Handler for POST /api/auto-tuning/run; forwards a call.
 
AutoTuningStatusFn autoTuningStatus
 Handler for GET /api/auto-tuning; the startup snapshot.
 
AutoTuningSpecFn autoTuningSpec
 Handler for GET /api/auto-tuning/swagger.yml.
 
EniOptionsFn eniOptions
 
std::string corsOrigin {"https://motion-master.synapticon.com"}
 Value sent in Access-Control-Allow-Origin. Defaults to the production PWA origin.
 

Detailed Description

Server configuration.

Member Data Documentation

◆ autoTuningSpec

AutoTuningSpecFn HttpServer::Config::autoTuningSpec

Handler for GET /api/auto-tuning/swagger.yml.

◆ autoTuningStatus

AutoTuningStatusFn HttpServer::Config::autoTuningStatus

Handler for GET /api/auto-tuning; the startup snapshot.

◆ bindAddress

std::string HttpServer::Config::bindAddress {"127.0.0.1"}

Local address to bind. Loopback serves only this machine; "0.0.0.0" serves the network.

◆ certFile

std::string HttpServer::Config::certFile

Path to the TLS certificate (PEM).

◆ corsOrigin

std::string HttpServer::Config::corsOrigin {"https://motion-master.synapticon.com"}

Value sent in Access-Control-Allow-Origin. Defaults to the production PWA origin.

◆ eniOptions

EniOptionsFn HttpServer::Config::eniOptions

Supplies the non-bus half of GET /api/eni; required for it.

◆ getGameLoopHealth

GetGameLoopHealthFn HttpServer::Config::getGameLoopHealth

Handler for GET /api/game-loop; RT loop health snapshot.

◆ getLog

GetLogFn HttpServer::Config::getLog

Handler for GET /api/log; returns buffered log entries.

◆ initDeviceManager

InitDeviceManagerFn HttpServer::Config::initDeviceManager

Handler for POST /api/init; required for API-driven init.

◆ keyFile

std::string HttpServer::Config::keyFile

Path to the TLS private key (PEM).

◆ port

uint16_t HttpServer::Config::port = 61447

TCP port to listen on (TLS).

◆ refreshCert

RefreshCertFn HttpServer::Config::refreshCert

Handler for POST /api/cert/refresh; fetches+installs a cert.

◆ runAutoTuning

AutoTuningRunFn HttpServer::Config::runAutoTuning

Handler for POST /api/auto-tuning/run; forwards a call.

◆ setGameLoopPeriod

SetGameLoopPeriodFn HttpServer::Config::setGameLoopPeriod

Handler for PUT /api/game-loop; retimes the RT loop.

◆ startedConfig

std::string HttpServer::Config::startedConfig

Serialized JSON of the boot config; served at GET /api/config.

◆ version

std::string HttpServer::Config::version

Application version string served at GET /api/version.


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