-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow passing http serverOptions from config #18591
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it
I do too, I think it would provide a lot of solutions to edge cases, and if we like this, I will probably do the same for Koa, Apollo, and any other external modules we use. We already do it with Knex. Ultimately however this is a philosophical question that I'll need to wait for a consensus on before we can merge. |
22fc154
What does it do?
Allows user to set http server configuration options
Why is it needed?
The specific issue is that Strapi can no longer accept any file uploads that take longer than the default Node 18+ http server requestTimeout, which is 5 minutes.
This allows users to configure that setting to be whatever value they wish.
In addition to that, users will now be able to configure any option available in http.ServerOptions
How to test it?
Try setting some values in config/server.ts http.serverOptions and see that they are passed through to the http.createServer
Related issue(s)/PR(s)
Fixes #18543
Documentation PR