You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.MD
+11-21Lines changed: 11 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,19 @@
1
1
# CS2 Server Control with a Nodejs-powered web-API (LINUX only)
2
2
this API is used to start/stop/update a CS2 linux dedicated server and control it via rcon.
3
-
The backend accepts RESTful api calls authenticated either via steamID or a configurable user with hppt authentication for stateless API calls.
3
+
The backend accepts RESTful api calls authenticated either via steamID or a configurable user with http authentication for stateless API calls.
4
4
A full featured example webinterface is provided to get a quick start on the application.
5
5
6
6
## Disclaimer
7
7
The use of this software is at your own risk.
8
8
It exposes control of your server and shell functions to the internet. Although I did everything to secure the API, any bugs may lead to security breaches on your server.
9
9
I strongly adivise to use secure connections to prevent possible man-in-the-middle attacks.
10
10
11
-
## CS2 Beta Info
12
-
### New in Beta.3:
13
-
- Reworked the code, to make the initial configuration much easier.
14
-
- Example Webinterface is now served via the app, so you don't need to configure a seperate webserver.
15
-
- Made using websockets for data-transfer to Webinterface the standard.
16
-
17
-
### This is a beta release for CS2. It has the following changes to previous functionality
11
+
### This is the first release for CS2. It has the following changes to previous functionality
12
+
- The Steam-Api calls for the map details now need an API-Token. See configuration section below for details.
18
13
- Changed Log-reception to http logs, since UDP is not supported anymore in new server. Unnecessary library source-log-receiver removed.
19
-
- Maplist loading is still bugged in CS2 Server - therefore working with a static Maplist.
20
-
-Still working with the old CS_GO map-pictures, since the new ones are not yet available in the workshop
21
-
- API calls are unchanged.
14
+
- Maplist loading has changed to the worse, see [Maps TL;DR](https://github.com/Taraman17/nodejs-cs2-api/blob/master/MAPS.MD) for details how the API deals with it.
15
+
-Changed API calls (non braking).
16
+
- mapchange can now be done with map-filename (without extension), workshop-id or map-title as argument.
22
17
- added API endpoints for pausing and resuming the match (/control/pause & /control/unpause). Status is tracked in serverInfo.pause (false/true).
23
18
24
19
## Prerequisites
@@ -71,9 +66,9 @@ Start the script with
71
66
```console
72
67
node serverControl.js
73
68
```
74
-
In your brower open http://\<yourIP>:8090/gameserver.htm
69
+
In your browser open http://\<yourIP>:8090/gameserver.htm to see the example webinterface
75
70
76
-
The API will detect a running server and connect to it.
71
+
If the server is already running in a screen, the API will detect a running server and connect to it.
77
72
78
73
To start the API on boot and have it running in the background, I recommend [PM2](https://pm2.keymetrics.io/)
79
74
@@ -118,7 +113,7 @@ The /control message will return a JSON-String.
118
113
If run without startmap, server will be started with de_dust2.
119
114
- stop -> stop the server with RCON 'quit': { "success": true/false }
120
115
- kill -> use 'kill' command to shutdown the server, if RCON connection is not working: { "success": true/false }
0 commit comments