Skip to content

mod_push_service_mongoosepush

Module Description

This module handles the push_notification hook generated by mod_pubsub with an active push node. Each push_notification hook is converted as a REST API call to the MongoosePush service. You can find the full list of supported publish-options here.

Warning

This module does not support dynamic domains.

Prerequisites

This module uses a connection pool via mongoose_http_client. It must be defined in outgoing_pools setting.

Options

modules.mod_push_service_mongoosepush.pool_name

  • Syntax: non-empty string
  • Default: "undefined"
  • Example: pool_name = "mongoose_push_http"

The name of the pool to use (as defined in outgoing_pools).

modules.mod_push_service_mongoosepush.api_version

  • Syntax: string, "v2" or "v3"
  • Default: "v3"
  • Example: api_version = "v3"

REST API version to be used.

modules.mod_push_service_mongoosepush.max_http_connections

  • Syntax: non-negative integer
  • Default: 100
  • Example: max_http_connections = 100

The maximum amount of concurrent HTTP connections.

Example configuration

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
[outgoing_pools.http.mongoose_push_http]
  scope = "global"
  workers = 50

  [outgoing_pools.http.mongoose_push_http.connection]
    host = "https://localhost:8443"
    path_prefix = "/"
    request_timeout = 2000

[modules.mod_push_service_mongoosepush]
  pool_name = "mongoose_push_http"
  api_version = "v3"
  max_http_connections = 100