Skip to content

Web application for browsing the serverlist from CS2D

License

Notifications You must be signed in to change notification settings

ernestpasnik/cs2d-serverlist

Repository files navigation

Introduction

This application allows users to browse a list of servers for the game CS2D. It features a user-friendly interface and provides an API for retrieving server data in JSON format, making it easy to integrate with other applications. You can check out a live demo of the application here.

Installation

  1. Install geoipupdate on your system apt install -y geoipupdate
  2. Generate a license key and configure nano /etc/GeoIP.conf
AccountID your_account_id_here
LicenseKey your_license_key_here
DatabaseDirectory /usr/share/GeoIP
EditionIDs GeoLite2-Country
  1. Run the following command to update the GeoIP database geoipupdate
  2. Add a crontab entry to update the GeoIP database twice a week crontab -e
57 22 * * 0,4 geoipupdate >/dev/null 2>&1
  1. Clone repository git clone https://github.com/ernestpasnik/cs2d-serverlist.git
  2. Configure environment variables nano cs2d-serverlist/.env
HOST=0.0.0.0
PORT=3000
UDPHOST=0.0.0.0
UDPPORT=36963
USGNIP=81.169.236.243
USGNPORT=36963
COUNTRYDB=/usr/share/GeoIP/GeoLite2-Country.mmdb
  1. Install dependencies cd cs2d-serverlist && npm install
  2. Run the application node app.js

License

This project is licensed under the MIT License.