Web Configuration
This documentation is written using SimplisticNode's cPanel web hosting.
Last updated
Was this helpful?
This documentation is written using SimplisticNode's cPanel web hosting.
Last updated
Was this helpful?
Firstly, find the config.php file within the File Manager. Right-click, and click Edit.
You can set the default timezone of which you'd like the panel to run under. By default it's set to GMT, however, you can change this to your servers' primary timezone. Example: EST.
You'll want to set the Base URL to the primary domain that your staff panel will run under. For example, if you've created a sub-domain as staff.hamz.dev
, set it to https://staff.hamz.dev
. Do not add a trailing slash.
Going back to the database information you previously created in the step. Add the information below.
If you're using SimplisticNode, you can keep the DB_HOST
as localhost
, however, if you're using a third party, confirm with them what their host needs to be.
IMPORTANT: If you are using cPanel web hosting, ensure you put the full username and database user/name. Example: coobikxy_staffpanel
Next, you'll need to add your Discord bot information here.
Similar to the MySQL Database information above, enter your Discord bot information as per your Developer portal.
Token - This is your Bot token, found within Discord Developers > Bot > Token
Guild ID - Ensure you have Developer mode turned on in Discord, right-click the server icon, click Copy Server ID, and paste it into the table.
OAuth Client ID - This is your Bot token, found within Discord Developers > OAuth2 > General > Client ID
OAuth Client Secret - This is your Bot token, found within Discord Developers > OAuth2 > General > Client Secret
Whilst we're here, you can also go ahead and add your Redirect link for the Staff Panel.
Click Add Redirect on the OAuth2 page
In the URL box, using the Base URL above, copy that link but add the following to it:
So, once it's fully put together it'll look like https://staff.hamz.dev/actions/register.php
Within the array for the server information, fill it out carefully.
The server_rcon_pass
needs to be set to the same as what is set in the server.cfg
.
Lastly, line 36, enter the Role IDs for users who will have full admin access on the panel.
Starting with Line 21, you'll want to create a secret code. This can be a word you remember, but ideally, create it as a string of letters and numbers. A usually helps with this.
Next, you'll need to generate a Steam API key, if your server doesn't already have one. Head over to the to create one.