|
Ditto
5.1.0
|
Part of the Listen config that relates to incoming HTTP connections.
More...
Public Member Functions | |
| bool | operator== (const HttpListenConfig &other) const |
| bool | operator!= (const HttpListenConfig &other) const |
Public Attributes | |
| bool | enabled = false |
| std::string | interface_ip = "[::]" |
| uint16_t | port = 80 |
| bool | websocket_sync = false |
| std::string | tls_key_path |
| std::string | tls_certificate_path |
Part of the Listen config that relates to incoming HTTP connections.
| bool HttpListenConfig::enabled = false |
Whether or not the HTTP listen connection should be enabled.
| std::string HttpListenConfig::interface_ip = "[::]" |
The IP interface to bind to. [::] by default.
| uint16_t HttpListenConfig::port = 80 |
Listening port. 80 by default.
| std::string HttpListenConfig::tls_certificate_path |
An absolute path to the PEM-formatted certificate for HTTPS. Must be set together with tls_key_path.
If not set, the server runs as unencrypted HTTP.
| std::string HttpListenConfig::tls_key_path |
An absolute path to the PEM-formatted private key for HTTPS. Must be set together with tls_certificate_path.
If not set, the server runs as unencrypted HTTP.
| bool HttpListenConfig::websocket_sync = false |
If true (default), peers can connect over websocket to sync with this peer.
This feature has security implications and should only be used together with documentation on Ditto's website.