This is the client app that goes with... a master app to control a number of clients. To be created.
It's a web interface to control an assetto corsa server.
- PHP, apache/nginx/whatever takes your fancy
- A cron job set up
* * * * * /path/to/artisan schedule:run >> /dev/null 2>&1
AC_SERVER_SCRIPT=
Path to a copy of this script- The web user must be able to execute this script
- Personally I set up a line in sudoers:
www-data ALL=(steam) NOPASSWD: /path/to/assetto-server.sh
- The web user must be able to execute this script
AC_SERVER_ROOT=
Path to AC server root- The web user must be able to write to the config files
MASTER_SERVER_URL=
URL to an API willing to acceptPOST
ed resultsMASTER_IP=
IP of the machine that is allowed to make requests to this API
All end points expect JSON and return JSON
GET ping
- returns
['success' => true]
- returns
PUT config/server
- expects
['content' => '']
- returns
['updated' => bool]
- expects
PUT config/entry-list
- expects
['content' => '']
- returns
['updated' => bool]
- expects
PUT start
- returns
['success' => bool]
- returns
PUT stop
- returns
['success' => bool]
- returns
GET running
- returns
['running' => bool]
- returns
GET results/latest
- returns
['results' => string]
- returns
GET results/all
- returns
['filename' => string, 'filename' => string...]
- returns
GET log/server
- returns
['log' => string]
- returns
GET log/system
- returns
['filename' => string, 'filename' => string...]
- returns