External HTTP Server

Should be helpful a external HTTP server for few reasons.

  1. Bandwidth saving.
    We can save a lot from spend money in bandwidth upgrades if we could host the HTTP server in another host.
  2. Security reasons
    I’ve seen few servers being hit with HTTP attacks on FXServer, that high up the CPU usage consuming a lot of outgoing bandwidth and slowdown the server thread consuming all the available resources.
    Servers owners could be handle with that better using a NGINX or LIGHTTP.
  3. Optimal performance
    That allow the server owner dedicated all resources just to handle with player connections instead share resources with the HTTP on FXServer process.
  4. Fast download
    We can use gzip or another module to compress the served files across the network.

But what about the file sync? There’s a lot of ways to synchronize that and everyone can do the best way for himself, we can do this manually or setup a shared folder between two endpoints.

Another games already allow to do that and I hope FiveM also do in further updates, please allow us configure a external URL to serve FiveM client.

Cheers.

1 Like

You can proxy resource download, see https://cookbook.fivem.net/2019/10/29/optimizing-resource-downloads-using-a-caching-proxy/

You can also put the whole server behind a NGINX proxy https://gist.github.com/nathanctech/e648f8312ad0d599fbb3a28db7e4c8f0

2 Likes