-
If not, what's the recommended way of doing it? It seems like I can create a new secure server in initializeTransport but I don't have a reference to the existing app so I end up having to create a new one that ignores everything configured in initializeExpress. That seems a little clumsy. By the way, I know SSL is usually terminated at a web server like nginx but I may have some unique requirements that could require Colyseus/Express to do it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @cort1c, that's not currently possible if you're using the colyseus/packages/tools/src/index.ts Lines 159 to 160 in 49b010b To use terminate SSL at the Node.js layer you'd need to use |
Beta Was this translation helpful? Give feedback.
Hi @cort1c, that's not currently possible if you're using the
@colyseus/tools
package, as it internally useshttp.createServer
for theexpress
layer:colyseus/packages/tools/src/index.ts
Lines 159 to 160 in 49b010b
To use terminate SSL at the Node.js layer you'd need to use
https.createServer()
and provide the certificates. Right now you can only do this by not using the@colyseus/tools
package and initializing the ColyseusServer
manually.