1#include <xrpld/rpc/ServerHandler.h>
3#include <xrpld/app/main/Application.h>
4#include <xrpld/overlay/Overlay.h>
5#include <xrpld/rpc/RPCHandler.h>
6#include <xrpld/rpc/Role.h>
7#include <xrpld/rpc/detail/Tuning.h>
8#include <xrpld/rpc/detail/WSInfoSub.h>
10#include <xrpl/basics/Log.h>
11#include <xrpl/basics/StringUtilities.h>
12#include <xrpl/basics/base64.h>
13#include <xrpl/basics/contract.h>
14#include <xrpl/basics/make_SSLContext.h>
15#include <xrpl/beast/net/IPAddress.h>
16#include <xrpl/beast/net/IPAddressConversion.h>
17#include <xrpl/beast/rfc2616.h>
18#include <xrpl/beast/utility/Journal.h>
19#include <xrpl/config/Constants.h>
20#include <xrpl/core/Job.h>
21#include <xrpl/core/JobQueue.h>
22#include <xrpl/json/Output.h>
23#include <xrpl/json/json_forwards.h>
24#include <xrpl/json/json_reader.h>
25#include <xrpl/json/json_value.h>
26#include <xrpl/json/json_writer.h>
27#include <xrpl/json/to_string.h>
28#include <xrpl/protocol/ApiVersion.h>
29#include <xrpl/protocol/BuildInfo.h>
30#include <xrpl/protocol/ErrorCodes.h>
31#include <xrpl/protocol/RPCErr.h>
32#include <xrpl/protocol/SystemParameters.h>
33#include <xrpl/protocol/jss.h>
34#include <xrpl/resource/Charge.h>
35#include <xrpl/resource/Consumer.h>
36#include <xrpl/resource/Fees.h>
37#include <xrpl/resource/ResourceManager.h>
38#include <xrpl/server/Handoff.h>
39#include <xrpl/server/InfoSub.h>
40#include <xrpl/server/NetworkOPs.h>
41#include <xrpl/server/Port.h>
42#include <xrpl/server/Server.h>
43#include <xrpl/server/Session.h>
44#include <xrpl/server/SimpleWriter.h>
45#include <xrpl/server/WSSession.h>
46#include <xrpl/server/detail/JSONRPCUtil.h>
48#include <boost/asio/buffer.hpp>
49#include <boost/asio/io_context.hpp>
50#include <boost/asio/ip/tcp.hpp>
51#include <boost/beast/core/multi_buffer.hpp>
52#include <boost/beast/http/fields.hpp>
53#include <boost/beast/http/status.hpp>
54#include <boost/beast/http/string_body.hpp>
55#include <boost/beast/http/verb.hpp>
56#include <boost/beast/websocket/impl/rfc6455.hpp>
57#include <boost/beast/websocket/rfc6455.hpp>
58#include <boost/system/detail/error_code.hpp>
84 return request.version() >= 11 && request.target() ==
"/" && request.body().
size() == 0 &&
85 request.method() == boost::beast::http::verb::get;
91 using namespace boost::beast::http;
93 response<string_body> msg;
94 msg.version(request.version());
97 msg.insert(
"Content-Type",
"text/html");
98 msg.insert(
"Connection",
"close");
99 msg.body() =
"Invalid protocol.";
100 msg.prepare_payload();
112 auto const it = h.
find(
"authorization");
113 if ((it == h.
end()) || (!it->second.starts_with(
"Basic ")))
118 std::string::size_type
const nColon = strUserPass.
find(
':');
119 if (nColon == std::string::npos)
123 return strUser == port.
user && strPassword == port.
password;
129 boost::asio::io_context& ioContext,
141 auto const& group(cm.
group(
"rpc"));
143 rpcSize_ = group->makeEvent(
"size");
144 rpcTime_ = group->makeEvent(
"time");
159 for (
auto& port :
setup_.ports)
163 auto const endpointPort = it->second.port();
165 port.port = endpointPort;
167 if ((
setup_.client.port == 0u) &&
168 (port.protocol.contains(
"http") || port.protocol.contains(
"https")))
169 setup_.client.port = endpointPort;
171 if ((
setup_.overlay.port() == 0u) && port.protocol.contains(
"peer"))
172 setup_.overlay.port(endpointPort);
194 auto const& port = session.
port();
196 auto const c = [
this, &port] {
201 if ((port.limit != 0) && c >= port.limit)
203 JLOG(
journal_.trace()) << port.name <<
" is full; dropping " << endpoint;
215 boost::asio::ip::tcp::endpoint
const& remoteAddress)
217 using namespace boost::beast;
220 p.contains(
"ws") || p.contains(
"ws2") || p.contains(
"wss") || p.contains(
"wss2"),
223 if (websocket::is_upgrade(request))
235 JLOG(
journal_.error()) <<
"Exception upgrading websocket: " << e.
what() <<
"\n";
247 ws->appDefined = std::move(is);
251 handoff.
moved =
true;
255 if (bundle && p.contains(
"peer"))
256 return app_.getOverlay().onHandoff(std::move(bundle), std::move(request), remoteAddress);
275 for (
auto const& e : h)
281 key, key.
begin(), [](
auto kc) { return std::tolower(static_cast<unsigned char>(kc)); });
287template <
class ConstBufferSequence>
291 using boost::asio::buffer_size;
297 s.
append(
static_cast<char const*
>(b.data()), buffer_size(b));
321 auto const postResult =
jobQueue_.postCoro(
325 if (postResult ==
nullptr)
329 detachedSession->close(
true);
340 auto const size = boost::asio::buffer_size(buffers);
344 jvResult[jss::type] = jss::error;
345 jvResult[jss::error] =
"jsonInvalid";
347 boost::beast::multi_buffer sb;
348 json::stream(jvResult, [&sb](
auto const p,
auto const n) {
349 sb.commit(boost::asio::buffer_copy(sb.prepare(n), boost::asio::buffer(p, n)));
351 JLOG(
journal_.trace()) <<
"Websocket sending '" << jvResult <<
"'";
357 JLOG(
journal_.trace()) <<
"Websocket received '" << jv <<
"'";
359 auto const postResult =
jobQueue_.postCoro(
365 auto const n = s.length();
366 boost::beast::multi_buffer sb(n);
367 sb.commit(boost::asio::buffer_copy(sb.prepare(n), boost::asio::buffer(s.c_str(), n)));
371 if (postResult ==
nullptr)
374 session->close({boost::beast::websocket::going_away,
"Shutting Down"});
399 using namespace std::chrono_literals;
400 auto const level = [&] {
402 return journal.
error();
404 return journal.
warn();
405 return journal.
debug();
408 JLOG(level) <<
"RPC request processing duration = "
410 <<
" microseconds. request = " << request;
420 if (is->getConsumer().disconnect(
journal_))
422 session->close({boost::beast::websocket::policy_error,
"threshold exceeded"});
441 jr[jss::type] = jss::response;
442 jr[jss::status] = jss::error;
444 : jss::missingCommand;
445 jr[jss::request] = jv;
447 jr[jss::id] = jv[jss::id];
449 jr[jss::jsonrpc] = jv[jss::jsonrpc];
451 jr[jss::ripplerpc] = jv[jss::ripplerpc];
453 jr[jss::api_version] = jv[jss::api_version];
461 app_.config().betaRpcApi,
478 .j =
app_.getJournal(
"RPCHandler"),
480 .loadType = loadType,
481 .netOps =
app_.getOPs(),
482 .ledgerMaster =
app_.getLedgerMaster(),
483 .consumer = is->getConsumer(),
487 .apiVersion = apiVersion,
490 {.user = is->user(), .forwardedFor = is->forwardedFor()},
503 JLOG(
journal_.error()) <<
"Exception while processing WS: " << ex.
what() <<
"\n"
508 is->getConsumer().charge(loadType);
509 if (is->getConsumer().warn())
510 jr[jss::warning] = jss::load;
517 if (jr[jss::result].isMember(jss::error))
519 jr = jr[jss::result];
520 jr[jss::status] = jss::error;
526 if (rq.isMember(jss::passphrase.cStr()))
527 rq[jss::passphrase.cStr()] =
"<masked>";
528 if (rq.isMember(jss::secret.cStr()))
529 rq[jss::secret.cStr()] =
"<masked>";
530 if (rq.isMember(jss::seed.cStr()))
531 rq[jss::seed.cStr()] =
"<masked>";
532 if (rq.isMember(jss::seed_hex.cStr()))
533 rq[jss::seed_hex.cStr()] =
"<masked>";
536 jr[jss::request] = rq;
540 jr[jss::status] = jss::success;
544 jr[jss::id] = jv[jss::id];
546 jr[jss::jsonrpc] = jv[jss::jsonrpc];
548 jr[jss::ripplerpc] = jv[jss::ripplerpc];
550 jr[jss::api_version] = jv[jss::api_version];
552 jr[jss::type] = jss::response;
565 session->remoteAddress().atPort(0),
570 auto const iter = session->request().find(
"X-User");
571 if (iter != session->request().end())
572 return iter->value();
582 session->close(
true);
591 sub[
"message"] = std::move(message);
612 auto const rpcJ =
app_.getJournal(
"RPC");
631 if (jsonOrig.
isMember(jss::method) && jsonOrig[jss::method] ==
"batch")
634 if (!jsonOrig.
isMember(jss::params) || !jsonOrig[jss::params].
isArray())
636 httpReply(400,
"Malformed batch request", output, rpcJ);
639 size = jsonOrig[jss::params].
size();
644 for (
unsigned i = 0; i < size; ++i)
646 json::Value const& jsonRPC = batch ? jsonOrig[jss::params][i] : jsonOrig;
651 r[jss::request] = jsonRPC;
659 jsonRPC[jss::params].
size() > 0 && jsonRPC[jss::params][0u].
isObject())
675 httpReply(400, jss::invalid_API_version.cStr(), output, rpcJ);
679 r[jss::request] = jsonRPC;
691 apiVersion,
app_.config().betaRpcApi, jsonRPC[jss::method].
asString());
698 required, port, jsonRPC[jss::params][
json::UInt(0)], remoteIPAddress, user);
718 httpReply(503,
"Server is overloaded", output, rpcJ);
733 httpReply(403,
"Forbidden", output, rpcJ);
742 if (!jsonRPC.
isMember(jss::method) || jsonRPC[jss::method].
isNull())
747 httpReply(400,
"Null method", output, rpcJ);
762 httpReply(400,
"method is not string", output, rpcJ);
772 if (strMethod.
empty())
777 httpReply(400,
"method is empty", output, rpcJ);
795 params = jsonRPC[jss::params];
803 httpReply(400,
"params unparsable", output, rpcJ);
808 params = std::move(params[0u]);
812 httpReply(400,
"params unparsable", output, rpcJ);
823 if (params.
isMember(jss::ripplerpc))
825 if (!params[jss::ripplerpc].isString())
830 httpReply(400,
"ripplerpc is not a string", output, rpcJ);
839 ripplerpc = params[jss::ripplerpc].
asString();
852 JLOG(
journal_.debug()) <<
"Query: " << strMethod << params;
855 params[jss::command] = strMethod;
856 JLOG(
journal_.trace()) <<
"doRpcCommand:" << strMethod <<
":" << params;
864 .loadType = loadType,
866 .ledgerMaster =
app_.getLedgerMaster(),
871 .apiVersion = apiVersion,
889 <<
"Internal error : " << ex.
what()
900 result[jss::warning] = jss::load;
907 result[jss::status] = jss::error;
908 result[
"code"] = result[jss::error_code];
909 result[
"message"] = result[jss::error_message];
912 <<
"rpcError: " << result[jss::error] <<
": " << result[jss::error_message];
913 r[jss::error] = std::move(result);
917 result[jss::status] = jss::success;
918 r[jss::result] = std::move(result);
931 if (rq.isMember(jss::passphrase.cStr()))
932 rq[jss::passphrase.cStr()] =
"<masked>";
933 if (rq.isMember(jss::secret.cStr()))
934 rq[jss::secret.cStr()] =
"<masked>";
935 if (rq.isMember(jss::seed.cStr()))
936 rq[jss::seed.cStr()] =
"<masked>";
937 if (rq.isMember(jss::seed_hex.cStr()))
938 rq[jss::seed_hex.cStr()] =
"<masked>";
941 result[jss::status] = jss::error;
942 result[jss::request] = rq;
945 <<
"rpcError: " << result[jss::error] <<
": " << result[jss::error_message];
949 result[jss::status] = jss::success;
951 r[jss::result] = std::move(result);
955 r[jss::jsonrpc] = params[jss::jsonrpc];
956 if (params.
isMember(jss::ripplerpc))
957 r[jss::ripplerpc] = params[jss::ripplerpc];
959 r[jss::id] = params[jss::id];
962 reply.
append(std::move(r));
966 reply = std::move(r);
969 if (reply.
isMember(jss::result) && reply[jss::result].
isMember(jss::result))
971 reply = reply[jss::result];
974 reply[jss::result][jss::status] = reply[jss::status];
981 int const httpStatus = [&reply] {
988 if (reply.
isMember(jss::error) && reply[jss::error].
isMember(jss::error_code) &&
989 reply[jss::error][jss::error_code].
isInt())
991 int const errCode = reply[jss::error][jss::error_code].
asInt();
1009 if (
auto const stream =
journal_.debug())
1011 static int const kMaxSize = 10000;
1012 if (response.size() <= kMaxSize)
1014 stream <<
"Reply: " << response;
1018 stream <<
"Reply: " << response.substr(0, kMaxSize);
1022 httpReply(httpStatus, response, output, rpcJ);
1034 using namespace boost::beast::http;
1036 response<string_body> msg;
1038 if (
app_.serverOkay(reason))
1040 msg.result(boost::beast::http::status::ok);
1041 msg.body() =
"<!DOCTYPE html><html><head><title>Test page for " +
systemName() +
1042 "</title></head><body><h1>Test</h1><p>This page shows " +
systemName() +
1043 " http(s) connectivity is working.</p></body></html>";
1047 msg.result(boost::beast::http::status::internal_server_error);
1048 msg.body() =
"<HTML><BODY>Server cannot accept clients: " + reason +
"</BODY></HTML>";
1050 msg.version(request.version());
1052 msg.insert(
"Content-Type",
"text/html");
1053 msg.insert(
"Connection",
"close");
1054 msg.prepare_payload();
1064 for (
auto& p :
ports)
1068 if (p.sslKey.empty() && p.sslCert.empty() && p.sslChain.empty())
1093 log <<
"Missing 'ip' in [" << p.
name <<
"]";
1100 log <<
"Missing 'port' in [" << p.
name <<
"]";
1107 log <<
"Missing 'protocol' in [" << p.
name <<
"]";
1138 log <<
"Required section [server] is missing";
1147 for (
auto const& name : names)
1149 if (!config.
exists(name))
1151 log <<
"Missing section: [" << name <<
"]";
1167 auto it = result.
begin();
1169 while (it != result.
end())
1171 auto& p = it->protocol;
1175 if ((p.erase(
"peer") != 0u) && p.empty())
1177 it = result.
erase(it);
1192 log <<
"Error: More than one peer protocol configured in [server]";
1197 log <<
"Warning: No peer protocol configured";
1207 decltype(setup.
ports)::const_iterator iter;
1208 for (iter = setup.
ports.cbegin(); iter != setup.
ports.cend(); ++iter)
1210 if (iter->protocol.contains(
"http") || iter->protocol.contains(
"https"))
1213 if (iter == setup.
ports.cend())
1215 setup.
client.
secure = iter->protocol.contains(
"https");
1219 setup.
client.
ip = iter->ip.is_v6() ?
"::1" :
"127.0.0.1";
1223 setup.
client.
ip = iter->ip.to_string();
1237 setup.
ports, [](
Port const& port) { return port.protocol.contains(
"peer"); });
1238 if (iter == setup.
ports.cend())
1243 setup.
overlay = {iter->ip, iter->port};
1261 boost::asio::io_context& ioContext,
A generic endpoint for log messages.
EventImpl::value_type value_type
A version-independent IP address and port combination.
Decorator for streaming out compact json.
Unserialize a JSON document into a Value.
bool parse(std::string const &document, Value &root)
Read a Value from a JSON document.
std::string getFormattedErrorMessages() const
Returns a user friendly string that list errors in the parsed document.
Value removeMember(char const *key)
Remove and return the named member.
bool isNull() const
isNull() tests to see if this field is null.
Value & append(Value const &value)
Append value to array at the end.
UInt size() const
Number of values in array or object.
std::string asString() const
Returns the unquoted string value.
bool isObjectOrNull() const
bool isMember(char const *key) const
Return true if the object has a member named key.
bool exists(std::string const &name) const
Returns true if a section with the given name exists.
Section & section(std::string const &name)
Returns the section with the given name.
Holds transactions which were deferred to the next pass of consensus.
Provides the beast::insight::Collector service.
virtual beast::insight::Group::Ptr const & group(std::string const &name)=0
std::shared_ptr< InfoSub > pointer
A pool of threads to perform work.
Tracks the current ledger and any ledgers in the process of closing.
Provides server functionality for clients.
Represents a peer connection in the overlay.
std::vector< std::string > const & values() const
Returns all the values in the section.
std::condition_variable condition_
ServerHandler(ServerHandlerCreator const &, Application &app, boost::asio::io_context &ioContext, JobQueue &jobQueue, NetworkOPs &networkOPs, resource::Manager &resourceManager, CollectorManager &cm)
Handoff onHandoff(Session &session, std::unique_ptr< StreamType > &&bundle, HttpRequestType &&request, boost::asio::ip::tcp::endpoint const &remoteAddress)
beast::insight::Event rpcTime_
beast::insight::Event rpcSize_
json::Value processSession(std::shared_ptr< WSSession > const &session, std::shared_ptr< JobQueue::Coro > const &coro, json::Value const &jv)
void processRequest(Port const &port, std::string const &request, beast::ip::Endpoint const &remoteIPAddress, Output const &, std::shared_ptr< JobQueue::Coro > coro, std::string_view forwardedFor, std::string_view user)
void onClose(Session &session, boost::system::error_code const &)
Setup const & setup() const
bool onAccept(Session &session, boost::asio::ip::tcp::endpoint endpoint)
friend std::unique_ptr< ServerHandler > makeServerHandler(Application &app, boost::asio::io_context &, JobQueue &, NetworkOPs &, resource::Manager &, CollectorManager &cm)
void setup(Setup const &setup, beast::Journal journal)
resource::Manager & resourceManager_
Handoff statusResponse(HttpRequestType const &request) const
std::map< std::reference_wrapper< Port const >, int > count_
void onRequest(Session &session)
void onWSMessage(std::shared_ptr< WSSession > session, std::vector< boost::asio::const_buffer > const &buffers)
std::unique_ptr< Server > server_
beast::insight::Counter rpcRequests_
Persistent state information for a connection session.
virtual Port const & port()=0
Returns the Port settings for this connection.
virtual void close(bool graceful)=0
Close the session.
virtual std::shared_ptr< Session > detach()=0
Detach the session.
void write(std::string_view s)
Send a copy of data asynchronously.
virtual HttpRequestType & request()=0
Returns the current HTTP request.
virtual std::shared_ptr< WSSession > websocketUpgrade()=0
Convert the connection to WebSocket.
Validator keys and manifest as set in configuration file.
An endpoint that consumes resources.
bool disconnect(beast::Journal const &j)
Returns true if the consumer should be disconnected.
Disposition charge(Charge const &fee, std::string const &context={})
Apply a load charge to the consumer.
bool warn()
Returns true if the consumer should be warned.
Tracks load and resource consumption.
T duration_cast(T... args)
bool isUnspecified(Address const &addr)
Returns true if the address is unspecified.
Endpoint fromAsio(boost::asio::ip::address const &address)
Convert to Endpoint.
bool isKeepAlive(boost::beast::http::message< IsRequest, Body, Fields > const &m)
std::function< void(std::string_view)> Output
void stream(json::Value const &jv, Write const &write)
Stream compact JSON to the specified function.
@ Array
array value (ordered list)
@ Object
object value (collection of name/value pairs).
std::string const & getFullVersionString()
Full server version string.
Charge const kFeeMalformedRpc
Charge const kFeeReferenceRpc
static constexpr int kMaxRequestSize
constexpr std::string_view kRippleRpcVersion1
Values accepted in the ripplerpc request field, which selects the shape of the JSON-RPC reply envelop...
Role roleRequired(unsigned int version, bool betaEnabled, std::string_view method)
static constexpr auto kApiVersionIfUnspecified
constexpr std::string_view kRippleRpcVersion3
unsigned int getAPIVersionNumber(json::Value const &jv, bool betaEnabled)
Retrieve the api version number from the json value.
int errorCodeHttpStatus(ErrorCodeI code)
Returns http status that corresponds to the error code.
static constexpr auto kApiInvalidVersion
constexpr std::string_view kRippleRpcVersion2
json::Value makeError(ErrorCodeI code)
Returns a new json object that reflects the error code.
::rpc::Status doCommand(rpc::JsonContext &context, json::Value &result)
Execute an RPC command and store the results in a json::Value.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
static void setupClient(ServerHandler::Setup &setup)
std::string base64Decode(std::string_view data)
static json::Value makeJsonError(json::Int code, json::Value &&message)
ServerHandler::Setup setupServerHandler(Config const &config, std::ostream &log)
constexpr json::Int kWrongVersion
void parsePort(ParsedPort &port, Section const §ion, std::ostream &log)
static Port toPort(ParsedPort const &parsed, std::ostream &log)
std::unique_ptr< Server > makeServer(Handler &handler, boost::asio::io_context &ioContext, beast::Journal journal)
Create the HTTP server using the specified handler.
static std::map< std::string, std::string > buildMap(boost::beast::http::fields const &h)
static bool authorized(Port const &port, std::map< std::string, std::string > const &h)
constexpr json::Int kMethodNotFound
std::string trimWhitespace(std::string str)
Remove leading and trailing ASCII whitespace.
static std::vector< Port > parsePorts(Config const &config, std::ostream &log)
std::string to_string(BaseUInt< Bits, Tag > const &a)
void logDuration(json::Value const &request, T const &duration, beast::Journal &journal)
static json::Output makeOutput(Session &session)
json::Value rpcError(ErrorCodeI iError)
void httpReply(int nStatus, std::string const &strMsg, json::Output const &, beast::Journal j)
Role requestRole(Role const &required, Port const &port, json::Value const ¶ms, beast::ip::Endpoint const &remoteIp, std::string_view user)
Return the allowed privilege role.
std::shared_ptr< boost::asio::ssl::context > makeSslContextAuthed(std::string const &keyFile, std::string const &certFile, std::string const &chainFile, std::string const &cipherList)
Create an authenticated SSL context using the specified files.
constexpr json::Int kForbidden
static std::string const & systemName()
boost::beast::http::request< boost::beast::http::dynamic_body > HttpRequestType
std::shared_ptr< boost::asio::ssl::context > makeSslContext(std::string const &cipherList)
Create a self-signed SSL context that allows anonymous Diffie Hellman.
static std::string buffersToString(ConstBufferSequence const &bs)
std::string_view forwardedFor(HttpRequestType const &request)
static bool isStatusRequest(HttpRequestType const &request)
static Handoff statusRequestResponse(HttpRequestType const &request, boost::beast::http::status status)
bool isUnlimited(Role const &role)
ADMIN and IDENTIFIED roles shall have unlimited resources.
constexpr json::Int kServerOverloaded
Overlay::Setup setupOverlay(BasicConfig const &config, beast::Journal j)
XRPL_NO_SANITIZE_ADDRESS void Throw(Args &&... args)
resource::Consumer requestInboundEndpoint(resource::Manager &manager, beast::ip::Endpoint const &remoteAddress, Role const &role, std::string_view user, std::string_view forwardedFor)
T static_pointer_cast(T... args)
T remove_suffix(T... args)
static ip::Endpoint fromAsio(boost::asio::ip::address const &address)
Used to indicate the result of a server connection handoff.
std::shared_ptr< Writer > response
std::set< std::string, boost::beast::iless > protocol
std::vector< boost::asio::ip::network_v4 > adminNetsV4
std::optional< boost::asio::ip::address > ip
std::vector< boost::asio::ip::network_v6 > adminNetsV6
std::vector< boost::asio::ip::network_v6 > secureGatewayNetsV6
std::optional< std::uint16_t > port
std::vector< boost::asio::ip::network_v4 > secureGatewayNetsV4
std::uint16_t wsQueueLimit
boost::beast::websocket::permessage_deflate pmdOptions
std::string adminPassword
Configuration information for a Server listening port.
std::vector< boost::asio::ip::network_v6 > adminNetsV6
std::set< std::string, boost::beast::iless > protocol
boost::beast::websocket::permessage_deflate pmdOptions
std::vector< boost::asio::ip::network_v4 > secureGatewayNetsV4
std::vector< boost::asio::ip::network_v4 > adminNetsV4
std::uint16_t wsQueueLimit
std::vector< boost::asio::ip::network_v6 > secureGatewayNetsV6
std::string adminPassword
boost::asio::ip::address ip
static constexpr auto kServer
static constexpr auto kPortGrpc
std::string adminPassword
boost::asio::ip::tcp::endpoint overlay
std::vector< Port > ports