#!/usr/bin/env php setListenAddress('127.0.0.1:8888') ->setAllowOriginHeader("*") ->setContentSecurityPolicyHeader("default-src * 'self' http: 'unsafe-eval' 'unsafe-inline'; connect-src * 'self'") ->setAllowAnonymousSubscribe(true) ->setJwtSecret("!ChangeThisMercureHubJWTSecretKey!"); } $verbose = isset($opts['v']); $daemon = new Daemon($config, $verbose); $daemon->start();