fantinodavide / Squad_Whitelister

Other
10 stars 8 forks source link

Whitelister

Squad | Post Scriptum | Beyond the Wire

Join the official Discord server!

Installation

Prerequisites

Setup

  1. Download and unpack the Latest Release (release.zip)
  2. node server To start the server for the first time. The application will automatically stop to create the configuration file
  3. Configure as needed the application from conf.js file
  4. pm2 start server.js or node server --self-pm To start the server forever

Using a custom SSL Certificate

If you are NOT using a Process Manager (ex. PM2)

Add run argument --self-pm to automatically restart after an update or crash

Linking to the RemoteAdminListHosts.cfg

Environment Variables

API Documentation

Screenshots

conf.json Example

{
    "web_server": {
        "bind_ip": "0.0.0.0",
        "http_port": 80,
        "https_port": 443,
        "force_https": false,
        "session_duration_hours": 168
    },
    "database": {
        "mongo": {
            "host": "127.0.0.1",
            "port": 27017,
            "database": "Whitelister"
        }
    },
    "app_personalization": {
        "name": "Whitelister",
        "favicon": "",
        "accent_color": "#ffc40b",
        "logo_url": "https://joinsquad.com/wp-content/themes/squad/img/logo.png"
    },
    "other": {
        "automatic_updates": true,
        "update_check_interval_seconds": 3600,
        "whitelist_developers": true
    }
}