Join the official Discord server!
- NodeJS
- npm
- MongoDB
- PM2 (Optional)
- Download and unpack the Latest Release (release.zip)
node server
To start the server for the first time. The application will automatically stop to create the configuration file- Configure as needed the application from conf.js file
pm2 start server.js
ornode server --self-pm
To start the server forever
- Insert
certificate.key
in the certificates folder - Insert
certificate.crt
in the certificates folder
Add run argument --self-pm
to automatically restart after an update or crash
- Full output is found at path /wl (ex. https://example.ex/wl)
- If you need the output for a specific clan the path is /wl/{clan_code} (ex. https://example.ex/wl/1a2b3c4d)
MONGODB_CONNECTION_STRING
ex. mongodb://user:password@host:port/database.HIDDEN_CONFIG_TABS
ex. web_server;databaseHTTPS_SERVER_DISABLED
completely disables the HTTPS server, HTTP server will be used as only serverHTTPS_PORT
overrides the HTTPS port set from the configuration file
{
"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
}
}