Kaetram / Kaetram-Open

Kaetram is an open-source 2D HTML5 MMORPG. It is an extended version of BrowserQuest (BQ).
https://kaetram.com
Mozilla Public License 2.0
547 stars 114 forks source link

[Documentation] Port Change To 80 or 443 #217

Closed CodexAus closed 1 year ago

CodexAus commented 1 year ago

Is there a way to change the default Port to 80 non ssl or 443 ssl from 9000?

I've tried in vite.config but still stays on 9000 port.

Also would be great to add in .env additional ssl cert directory for SSL.

Please let me know?

lemueldls commented 1 year ago

The client's port is defined in Vite's config for yarn dev, and the package.json for yarn start.

For HTTPS, use Vite's server.https option, and add basic SSL for testing with @vitejs/plugin-basic-ssl, or use your own certificate in https.ServerOptions.

There are no current plans for client SSL certificates in .env, but something like this would most likely be documented in the future.

Let me know how it goes.