How to enable HTTP2 with Fastify?
Hey,
I would like to enable HTTP2 with Fastify but I need to get the path to the ssl certificate according to the docs: https://fastify.dev/docs/latest/Reference/HTTP2 where can I find this?
Regards, Job
HTTP2 | Fastify
HTTP2
5 Replies
Project ID:
N/A
N/A
railways public domains already support http2 there is nothing you need to do on your side of things
but if you wanted to do http2 for internal stuff, you would use h2c
https://fastify.dev/docs/latest/Reference/HTTP2/#plain-or-insecure
Thanks!
I'd like to note that if you opted to use h2c, railway's proxy layer would still talk to your app with http 1.1, you would only benefit from h2c if you did service to service communication over the private network