Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
HTTPS and HTTP2
You can enable HTTPS and HTTP2 support by adding
ssl section into
http: # http host to listen. address: 0.0.0.0:8080 ssl: # force redirect to https connection redirect: true # custom https port (default 443) port: 443 # ssl cert cert: server.crt # ssl private key key: server.key
Redirecting HTTP to HTTPS
To enable automatic redirect from
redirect option to
true (disabled by default).
HTTP/2 Push Resources
RoadRunner support (HTTP/2 push)[https://en.wikipedia.org/wiki/HTTP/2_Server_Push] via virtual headers provided by PHP response.
return $response->withAddedHeader('http2-push', '/test.js');
Note that the resources path must be related to the public application directory and must include
/ at the beginning.
Please note, HTTP2 push only works under HTTPS with