-
Reading the Colyseus documentation, I saw that the options.server parameter is deprecated and the recommendation for SSL/TLS encryption is to use NGINX for encryption (SSL/TLS termination). The issue is that in a lot of secure environments it is simply prohibited via policy to run any sort of webserver, even internally, without encryption. In order to get around this I'd have to utilize NGINX locally on the machine, and then proxy connections to ports on localhost, and overall it's just pain and additional maintenance overhead compared to just using https.createServer. My question is, would it be possible to convince you guys to continue to allow us to use options.server, or perhaps even allow us to provide certificates to colyseus so that it creates a HTTPS server instead of only a HTTP one? It would help me and my development team greatly to have this additional flexibility available. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @iratefun, welcome! You may still provide your own If you'd like to provide SSL/TLS certificates directly on the Node.js layer you could do so by providing options for the I'm not sure if it's possible to reload the certificates without restarting the Node.js processes this way, though. When using NGINX I know this is possible. Would appreciate if you have any idea about this! Kind regards, |
Beta Was this translation helpful? Give feedback.
Hi @iratefun, welcome!
You may still provide your own
server
option, but now from theTransport
layer. There are 2 WebSocket transports available by default: usingws
oruWebSockets.js
: https://docs.colyseus.io/server/transport/#default-websocket-transport-via-wsIf you'd like to provide SSL/TLS certificates directly on the Node.js layer you could do so by providing options for the
Transport
implementation.I'm not sure if it's possible to reload the certificates without restarting the Node.js processes this way, though. When using NGINX I know this is possible. Would appreciate if you have any idea about this!
Kind regards,
Endel