R
Railway9mo ago
Job

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
5 Replies
Percy
Percy9mo ago
Project ID: N/A
Job
Job9mo ago
N/A
Brody
Brody9mo ago
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
Job
Job9mo ago
Thanks!
Brody
Brody9mo ago
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