Changes between Version 16 and Version 17 of Integrated Webserver
- Timestamp:
- Jul 26, 2015, 5:20:09 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Integrated Webserver
v16 v17 3 3 Meant to become an easy to use and everywhere accessible administration interface mostly for tasks like player management. (Currently in early development stage) 4 4 5 5 6 == Current features == 6 7 * Viewing the map of the game as much as visited by players. 7 8 9 8 10 == Access == 11 The webserver will listen on the port defined as ControlPanelPort (from serverconfig) + 2. I.e. if you have set ControlPanelPort to 8080 (as it is by default) the webserver will listen on ''!http://<yourIpOrDomain>:8082/'' 9 12 10 The webserver will listen on the port defined as ControlPanelPort (from serverconfig) + 2. I.e. if you have set ControlPanelPort to 8080 (as it is by default) the webserver will listen on ''!http://<yourIpOrDomain>:8082/''11 13 12 14 == Is it running? == … … 16 18 }}} 17 19 If it does the server was started on the given port. 20 18 21 19 22 == Permissions == … … 33 36 webpermission add webapi.getstats 1000 34 37 38 35 39 == Web Tokens == 36 40 As tools like server managers obviously can not identify themselves with Steam login a token system has been added. That way those tools can provide a predefined token on ''each'' request to the webserver and those requests will be handled with the permission level given to that specific token. Web tokens are set up with the ''webtokens'' command. 41 The tokens have to be passed to each request like this: 42 !http://<server>:<port>/map/0/2/1.png?'''adminuser=<tokenuserpart>&admintoken=<tokenpasswordpart>''' 43 For example, if your server is running on your machine, port 8082 and you added a webtoken with name "admin" and password "supersecrettoken" a request would look like this: 44 !http://localhost:8082/api/getstats?adminuser=admin&admintoken=supersecrettoken 45 37 46 38 47 == apache and mod_proxy ==