# 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 # HTTP/3 support servers { protocol { experimental_http3 } } } # 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 !ChangeMe! # Subscriber JWT key subscriber_jwt !ChangeMe! # Permissive configuration for the development environment cors_origins * publish_origins * demo anonymous subscriptions } respond /healthz 200 respond "Not Found" 404 }