Cache Proxy Configuration
Cache Proxy (CDN) is used to store and distribute FiveM resource files so the download process is faster and more stable for clients, while also reducing the load on the main server.
Configuration
Add the following lines to server.cfg.
1. Set CDN Cache Key
set adhesive_cdnKey "yourSecretKey"
🔧 Replace:
yourSecretKey→ your own random string
2. Register the CDN File Server
fileserver_add ".*" "https://server1.example.com/files"
🔧 Replace this part:
https://server1.example.com/files
with your own CDN URL, for example:
fileserver_add ".*" "https://fivem.example.id/files"
Important Notes
- The CDN URL can be requested from the Technician / Hosting Admin
- Do not remove the
/filespath from the URL