1. Home
  2. Documenti
  3. PGM-API
  4. WEB SERVER
  5. Configuration

Configuration

Let’s move on to the configuration, start by going to our uploaded files, and open our config.php file. You will find yourself in front of this:

/* GENERAL INFO WEBSITE/SERVER. EDIT ONLY "this" */
$name = "PGM SERVER"; //NAME OF THE NETWORK
$ipaddressmc = "mc.pgmapiserver.it"; //IP SERVER MC
$urlwebsite = "www.ilariochiera.it"; //URL WEB
$administrator = "Ilario42"; //DEFAULT USERNAME. (INSERT ADMIN)
$logourl = "https://pgm.dev/img/logo.png"; //LOGO WEB
$apiavatar = "https://api.ashcon.app/mojang/v2/avatar"; //API AVATAR (NOT CHANGE)
$homebuttonurl = "https://www.pgmapiserver.it/home"; //HOME URL (Your Website)
/* STARTING DATABASE. EDIT ONLY "this" NOT CHANGE FOR DEFAULT */
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "pgmapi";

In the config change the name of your network, your server ip and url. Replace the nickname Ilario42 with your own, change the logo in the $logourl variable with the url of your logo.
I suggest you also change the homebuttonurl url, clicking on the home icon will take you to the portal.

The most important part is that of the database, here you have to put the same data you put in the previous config in the plugin /PGM-API/config.yml folder
Remember that if the data is different, this will not work

Hai trovato utile questo articolo? No