Summary
Persistent ranking system with support for MongoDB and local JSON files.
Description
Persistent ranking system with support for MongoDB and local JSON files.
It will use a local JSON file by default.
If you want to use MongoDB (to sync progress across multiple servers for example), you'll need to run a proxy server for the mongo database: https://github.com/Arkensor/EnfusionDatabaseFramework.Drivers.WebProxy.MongoDB .
Once you have the proxy setup, you'll have to pass the connection url as a CLI param when starting your server. Eg: `-TBKConnectionString "mongodb://TBK_ArmaReforger?host=<PROXY_IP>&port=8008"`.
NOTE: By default the proxy only allows requests coming from the same IP. The connection string however does not support setting the proxy IP to "localhost", so you'll have to use your public IP or domain name instead, even though it runs on the same machine.
Full example in Docker Compose:
MongoDB + Proxy
```
services:
proxy-app:
image: 'arkensor/enfusiondatabaseframework-proxy-mongodb:latest'
restart: unless-stopped
ports:
- '8008:8008'
environment:
DBHOST: mongodb
DBUSER: <DB_USER>
DBPASSWORD: <DB_PASS>
mongodb:
image: mongo:latest
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: <DB_USER>
MONGO_INITDB_ROOT_PASSWORD: <DB_PASS>
ports:
- 27017:27017
volumes:
- mongodb_data_container:/data/db
volumes:
mongodb_data_container:
```
ARMA Reforger Server
```
services:
arma-reforger:
image: ghcr.io/acemod/arma-reforger:latest
platform: linux/amd64
ports:
- "2002:2002/udp"
- "17778:17778/udp"
- "19989:19989/udp"
volumes:
- ./reforger/configs:/reforger/Configs
- ./reforger/profile:/home/profile
- ./reforger/workshop:/reforger/workshop
environment:
- ARMA_CONFIG=server.json
- ARMA_MAX_FPS=120
- ARMA_PARAMS=-TBKConnectionString "mongodb://TBK_ArmaReforger?host=thebeerkeg.net&port=8008"
```
This addon is powered by the Enfusion Database Framework.License
Arma Public License No Derivatives (APL-ND)