blob: b2f865f14f2bed7545569097c986dd6327b94a02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Learn how to configure the Mercure.rocks Hub on https://mercure.rocks/docs/hub/config
{
http_port 3000
https_port 3001
# Debug mode (disable it in production!)
debug
}
# Automatic HTTPS does not work with the systemd service unit.
# Change port to your https_port and enable the tls setting, if you want to use HTTPS.
:3000
#tls /etc/ssl/certs/cert.pem /etc/ssl/private/key.pem
log
route {
encode zstd gzip
mercure {
# Transport to use (default to Bolt)
transport_url bolt:///run/mercure/mercure.db
# Publisher JWT key
publisher_jwt !ChangeThisMercureHubJWTSecretKey!
# Subscriber JWT key
subscriber_jwt !ChangeThisMercureHubJWTSecretKey!
# Permissive configuration for the development environment
cors_origins *
publish_origins *
demo
anonymous
subscriptions
}
respond /healthz 200
respond "Not Found" 404
}
|