Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.41 KB

README.md

File metadata and controls

47 lines (37 loc) · 1.41 KB

CS2 Server Manager

CS2 Server Manager is a web-based management tool for your Counter-Strike 2 (CS2) server. This tool allows you to easily control your server settings, change local and workshop maps, and send custom console commands directly from your browser.

Features

  • Change Local Map: Easily switch between local maps.
  • Change Workshop Map: Switch to a map from your Steam Workshop collection.
  • Quick Commands: Wiki
  • Send Custom Commands: Execute any console command on your server.

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/cs2-server-manager.git
  2. Install the required dependencies:

    Install NodeJS (nodesource)

    npm install express body-parser rcon-client
  3. Configure the server settings in config.js (update RCON credentials and server IP).

  4. Run the application:

     node cs2manager.js
  5. Access the web interface via http://localhost:3136.

Example systemd service unit file

[Unit]
Description=CS2Manager
After=network.target

[Service]
WorkingDirectory=/var/www/cs2manager
ExecStart=/usr/bin/node cs2manager.js
Restart=always
RestartSec=10
Environment=NODE_ENV=production

[Install]
WantedBy=multi-user.target