You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`address` or `addresses`| the address(es) of the Redis server(s), you can pass several addresses to use several Redis servers (ex: `addresses host1:6379 host2:6379`, required) |
88
+
|`stream`| the name of the Redis stream to use (required) |
89
+
|`password`| the Redis password |
90
+
|`tls`| enable TLS support |
91
+
|`max_length`| the approximate maximum number of messages to store in the history, set to `0` to store all messages |
80
92
81
93
All [the configuration parameters and formats](https://mercure.rocks/docs/hub/config) supported by the free Mercure.rocks Hub are also available.
82
94
83
-
To use Redis, the `MERCURE_TRANSPORT_URL` environment variable must be set like in this example:
|`url`| The URL (DSN) to use to connect to Postgres (ex: `postgres://user:password@127.0.0.1/mercure-ha`, required) |
129
+
130
+
[Options supported by `libpq`](https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING) can be passed as query parameters of the URL set in `_url`.
131
+
114
132
All [the configuration parameters and formats](https://mercure.rocks/docs/hub/config) supported by the free Mercure.rocks Hub are also available.
115
133
116
-
To use PostgreSQL `LISTEN`/`NOTIFY`, the `MERCURE_TRANSPORT_URL` environment variable must be set like in this example:
**This feature is deprecated: use the new `transport` directive instead**.
123
137
124
138
[Options supported by `libpq`](https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING) can be passed as query parameters of the URL set in `transport_url`.
125
139
@@ -145,23 +159,30 @@ The Mercure.rocks hub has been tested with:
145
159
146
160
##### Kafka Configuration
147
161
162
+
The following options can be passed to the `transport` directive:
|`address` or `addresses`| the address(es) of the Kafka server(s), you can pass several addresses to use several Kafka servers (ex: `addresses host1:9092 host2:9092`, required) |
167
+
|`topic`| the name of the Kafka topic to use, **all Mercure.rocks hub instances must use the same topic** (required) |
168
+
|`consumer_group`| the consumer group of this node, **must be different for every instance of the Mercure.rocks hub**|
169
+
|`user`| the Kafka SASL user (optional) |
170
+
|`password`| the Kafka SASL password (optional) |
171
+
|`tls`| enable TLS support |
172
+
148
173
All [the configuration parameters and formats](https://mercure.rocks/docs/hub/config) supported by the free Mercure.rocks Hub are also available.
149
174
150
-
To use Kafka, the `MERCURE_TRANSPORT_URL` environment variable must be set like in this example:
|`addr`| addresses of the Kafka servers, you can pass several `addr` parameters to use several Kafka servers (ex: `addr=host1:9092&addr=host2:9092`) |
163
184
|`topic`| the name of the Kafka topic to use (ex: `topic=mercure-ha`), **all Mercure.rocks hub instances must use the same topic**|
164
-
|`consumer_group`| consumer group, **must be different for every instance of the Mercure.rocks hub** (ex: `consumer_group=<random-string>`)|
185
+
|`consumer_group`|the consumer group of this node, **must be different for every instance of the Mercure.rocks hub** (ex: `consumer_group=<random-string>`) |
165
186
|`user`| Kafka SASL user (optional, ex: `user=kevin`) |
| `path` | path of the database file (default: `mercure.db`) |
133
-
| `bucket_name` | name of the bolt bucket to store events. default to `updates` |
134
-
| `cleanup_frequency` | chances to trigger history cleanup when an update occurs, must be a number between `0` (never cleanup) and `1` (cleanup after every publication), default to `0.3`. |
135
-
| `size` | size of the history (to retrieve lost messages using the `Last-Event-ID` header), set to `0` to never remove old events (default) |
| `path` | path of the database file (default: `mercure.db`) |
133
+
| `bucket_name` | name of the bolt bucket to store events (default: `updates`) |
134
+
| `cleanup_frequency` | chances to trigger history cleanup when an update occurs, must be a number between `0` (never cleanup) and `1` (cleanup after every publication, default to `0.3`) |
135
+
| `size` | size of the history (to retrieve lost messages using the `Last-Event-ID` header), set to `0` to never remove old events (default) |
136
136
137
137
You can visualize and edit the content of the database using [boltdbweb](https://github.com/evnix/boltdbweb).
0 commit comments