2024-03-11 01:15:04 +00:00
|
|
|
# Mercureact default configuration file
|
|
|
|
# Please make a copy of me before editing
|
|
|
|
|
2024-03-11 23:28:31 +00:00
|
|
|
server:
|
2024-03-12 00:13:19 +00:00
|
|
|
# Listen address
|
2024-03-11 23:28:31 +00:00
|
|
|
address: 0.0.0.0:9000
|
2024-03-12 00:13:19 +00:00
|
|
|
# Enable websocket support (experimental)
|
|
|
|
websockets: false
|
2024-03-11 01:15:04 +00:00
|
|
|
|
2024-03-11 23:28:31 +00:00
|
|
|
# Setup CORS headers
|
|
|
|
cors:
|
|
|
|
# Access-Control-Allow-Origin
|
|
|
|
allow_origin: '*'
|
|
|
|
# Content-Security-Policy
|
|
|
|
csp: "default-src * 'self' http: 'unsafe-eval' 'unsafe-inline'; connect-src * 'self'"
|
2024-03-11 01:15:04 +00:00
|
|
|
|
2024-03-12 14:51:50 +00:00
|
|
|
# Setup encryption context, see PHPs TLS context options
|
2024-03-12 15:00:15 +00:00
|
|
|
encryption:
|
|
|
|
local_cert: ~
|
|
|
|
local_pk: ~
|
|
|
|
passphrase: ~
|
2024-03-11 01:15:04 +00:00
|
|
|
|
|
|
|
publish:
|
|
|
|
# Assign a UUID to published messages even if one is already set in the message
|
2024-03-12 00:45:21 +00:00
|
|
|
overwrite_ids: false
|
2024-03-11 01:15:04 +00:00
|
|
|
# Reject messages with previously seen IDs
|
|
|
|
reject_duplicates: true
|
|
|
|
|
|
|
|
subscribe:
|
|
|
|
# Allow anonymous subscription for public updates
|
2024-03-11 21:12:01 +00:00
|
|
|
allow_anonymous: true
|
2024-03-11 01:15:04 +00:00
|
|
|
|
|
|
|
security:
|
2024-03-11 21:12:01 +00:00
|
|
|
jwt_secret: "!ChangeThisMercureHubJWTSecretKey!"
|