CFC-Servers / gm_express

An unlimited, out-of-band, bi-directional networking library for Garry's Mod
https://gmod.express
GNU General Public License v3.0
70 stars 4 forks source link

Back-end #21

Open MeaDolphi opened 1 year ago

MeaDolphi commented 1 year ago

Hello. Do you have plans to implement JS back-end not only through CloudFlare? For me personally, and I think for many users of your library, it would be much more convenient to host these files on the same VDS.

brandonsturgeon commented 1 year ago

Great question!

I'll take a look at how difficult it would be to make a Nodejs server (or something) with functional parity to the CloudFlare backend. I'll report back with my findings.

Do note, of course, that self-hosting means you won't benefit from CloudFlare's distributed systems, meaning clients will likely take a hit to latency when retrieving data. However, I'm sure that if most of your players are regional (as they often are), this would be a very fair trade given the near-0 latency from the serverside 👍

brandonsturgeon commented 1 year ago

Alright, after wrestling with it for a full day, I got something working! I set up a new Docker Compose stack to run everything - is that a good solution for you?

If so, here are the new Self Hosting docs

If not, what kind of setup would work better for you?