Sign inSign up

ggmartinez/cs2-rcon-commander

By ggmartinez

Updated 4 months ago

https://github.com/ggMartinez/CS2-RCON-Commander

Image
0

1.4K

ggmartinez/cs2-rcon-commander repository overview

CS2 RCON Commander Pro

A high-performance, precision web interface for managing Counter-Strike 2 servers via RCON. Built with React and Node.js, featuring a clean "CS-style" UI with real-time feedback and advanced management tools. It may work with other games, but is not tested for anything else than CS2 (and for the moment, I will not test it with anything else).

Source code for this is available on my GitHub.

Server management scope

Aimed for managing a single server. My motivation was to manage my personal self-hosted server that I use to play with my friends. Maybe this will change on the future.

If you want to manage multiple servers, just run multiple instances of this, or use it without env variables and log in and out multiple times. The idea for this is to replace CS2-rcon-tool, the only RCON tool worth using. A shame that is only desktop.

Usage

The easiest way, just start it, and go to http://localhost:3000 It will ask for your server's IP, RCON password and RCON port.

docker run -d \
  -p 3000:3000 \
  --name cs2-commander \
  ggmartinez/cs2-rcon-commander

Another one is give the server's IP and RCON password. It will skip login and will connect directly.

docker run -d \
  -p 3000:3000 \
  -e SERVER_IP=your_server_ip \
  -e RCON_PASSWORD=your_rcon_password \
  --name cs2-commander \
  ggmartinez/cs2-rcon-commander

Also, with compose you can do something like this:

services:
   cs2-rcon-commander:
      image: ggmartinez/cs2-rcon-commander
      ports:
         - 3000:3000
      environment:
         - SERVER_IP: [YOUR SERVER'S IP]
         - RCON_PASSWORD: [YOUR SERVER'S RCON PASSWORD]

Works flawlessly with joedwards32/CS2 image.

Full env variables
VariableDescriptionDefault
SERVER_IPThe IP address or hostname of your CS2 server-
SERVER_PORTThe RCON port of your server27015
RCON_PASSWORDThe RCON password set on your server-
DEBUGEnable verbose loggingfalse
SSL and authentication

This app does not support SSL certificates nor authentication. If you need to have SSL termination to access it and user authentication, just use one of the million ways to have a reverse proxy in front that provides both features (nginx, traefik, you name it),

Disclaimer - Use at your own risk!

I've done it in a day with Google AI Studio, mostly Vibecoding through it, it's been a while since I've used Sockets, and Frontend is not my strength. Also, I'm not pretending to generate any revenue from this, so I wanted to have it working really fast.

I'm a senior Developer and DevOps engineer, so I've validated the most that can be validated in a day. The code can be improved, but is enough to be considered "ok".

As you can check on the code, it is made on good faith, and there is nothing that can go wrong using this due to the scope of the project (just connect to a CS2 server using RCON). Just be careful how you handle your credentials on the env variables.

Tag summary

Content type

Image

Digest

sha256:490c3d249

Size

129.4 MB

Last updated

4 months ago

docker pull ggmartinez/cs2-rcon-commander