mercureact/mercureactd.conf.dist

35 lines
815 B
Plaintext
Raw Normal View History

2024-03-11 01:15:04 +00:00
# Mercureact default configuration file
# Please make a copy of me before editing
listeners:
2024-03-11 01:15:04 +00:00
- address: 0.0.0.0:9000
# 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'"
# Setup encryption
encryption:
cert: foo.pem
key: foo.key
# Enable websockets
websocket:
enable: true
publish:
# Assign a UUID to published messages even if one is already set in the message
overwrite_id: false
# Reject messages with previously seen IDs
reject_duplicates: true
subscribe:
# Allow anonymous subscription for public updates
allow_anonymous: true
2024-03-11 01:15:04 +00:00
security:
jwt_secret: "!ChangeThisMercureHubJWTSecretKey!"