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
Is there possibility to use bot with https? #1223
Comments
Hi @Reg93 , as of now, there is no out of the box support for https. When using the ExpressApiServer component, the server is created here: nlp.js/packages/express-api-server/src/express-api-server.js Lines 79 to 82 in b9f04e9
What you can do, is to create a custom component, extending the current ExpressApiServer, and overwrite the start method to create an HTTPS server instead of the default HTTP one (you can check the express method docs on that listen method for more details (https://github.com/expressjs/express/blob/8368dc178af16b91b576c4c1d135f701a0007e5d/lib/application.js#L612-L636). Finally, just register your plugin instead of the ExpressAPIServer one. OR Modify the current ExpressApiServer so that it supports both modes, and contribute with the change 😬 |
This was intentional by design. Usually, you'll deploy into a cloud, and the certificates will be managed, so you don't really need to have the cert management in the development. If you are deploying on-premise, you usually configure a reverse proxy like Nginx, which already will take care of the certs. |
Thank you! |
Hello! I checked other issues but didn't find where https is mentioned. Is there options which can make server work on https?
I have such code in project now
The text was updated successfully, but these errors were encountered: