From Discord: Configuring BunHttpServer for HTTPS
effect-bot opened this issue · comments
Summary
The discussion revolves around configuring BunHttpServer for HTTPS. It is indeed possible to configure BunHttpServer to use HTTPS by passing tls
options to the layer
constructor. However, there's a noted issue with the type definitions where ServeOptions
are mistakenly used instead of Serve<WebSocketDataType>
. The corrected type, as provided, includes various options for serving over TLS, including TLSServeOptions
and TLSWebSocketServeOptions
, among others, to accommodate different configurations such as Unix sockets and WebSocket data types.
Key takeaways include:
- BunHttpServer supports HTTPS configuration through
tls
options. - There's a type definition issue in the library that may affect implementation.
- The corrected type definition expands the options to include TLS and WebSocket configurations, providing a comprehensive approach for HTTPS setup.
Discord thread
https://discord.com/channels/795981131316985866/1238180224529731654