Skip to main content

How to Set Up a Cache Proxy (VPS)

After the cache proxy is created in the VPS Panel (see How to Create a Cache Proxy (VPS)), apply its hostname & secret key to server.cfg.

1. Copy the Snippet from the VPS Panel

  1. Open the CFX Cache Proxy page in the VPS Panel.
  2. Click the Info button on the proxy card.
  3. Switch to the FiveM Guide tab, then copy the snippet shown.

Cache proxy Info and FiveM Guide

2. Apply It to server.cfg

  1. Open the Files menu, then open server.cfg.
  2. Add the following two lines:
fileserver_add ".*" "https://myserver-a1b2c3d4.cache.raznar.id/files"
adhesive_cdnKey "secret_key_dari_panel"

🔧 Replace:

  • https://myserver-a1b2c3d4.cache.raznar.id/filesyour proxy hostname. Do not remove the /files part.
  • secret_key_dari_panel → your proxy's Secret Key.
  1. Click Save.

Adding the CDN configuration to server.cfg

3. Restart the Server

Restart the server via the Console menu. Once it is active, resources will be downloaded by players through the proxy.

4. Clear Cache (If Needed)

If a resource has been changed and players are still receiving the old version, open the CFX Cache Proxy page in the VPS Panel and click Clear Cache.

Clear Cache

note

Always use the hostname that appears in your panel, do not copy the example above.


Other Versions