DittoHTTPListenConfig

HTTP & WebSocket listening configuration.

  • Indicates whether HTTP listening is enabled.

  • IP interface to bind to, [::] by default.

  • Listening port. 80 by default.

  • An absolute path to a directory of static HTTP content that should be served by this device.

    If nil (default), this feature is disabled.

  • 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.

  • An absolute path to the PEM-formatted private key for HTTPS. Must be set together with tlsCertificatePath.

    If nil, the server runs as unencrypted HTTP.

  • An absolute path to the PEM-formatted certificate for HTTPS. Must be set together with tlsKeyPath. If nil, the server runs as unencrypted HTTP.

  • Enable acting as a provider of Ditto identities.

  • PEM-encoded private key for signing tokens and certificates when acting as an identity provider.

  • PEM-encoded public keys for verifying tokens and certificates when acting as an identity provider.

  • PEM-encoded private key that should be used to issue certificates for clients in peer-to-peer mode.