Hard-code DB credentials to ZnoteAAC

This commit is contained in:
eroncero 2025-02-27 21:34:35 +01:00
parent d4f49c7637
commit b53c19929a
2 changed files with 13 additions and 4 deletions

9
2do.txt Normal file
View File

@ -0,0 +1,9 @@
2do list:
Critical:
- When phpmyadmin install-script generates a password, it doesnt match with the password stored in '/etc/phpmyadmin/config-db.php'.
- At least hard-code DB credentials to /var/www/ZnoteAAC/config.php so it can be able to access.
Refactor:
- Remove phpmyadmin dependencies written in install-script. Dependencies should be in the dockerfile. (Also make a copy of the original script).
- Check for more phpmyadmin errors. Proper php.ini tweaking?

View File

@ -30,13 +30,13 @@
// ------------------------ \\
// phpmyadmin username for OT server: (DONT USE "root" if you are hosting to public).
$config['sqlUser'] = 'tfs13';
$config['sqlUser'] = 'forgottenserver';
// phpmyadmin password for OT server:
$config['sqlPassword'] = 'tfs13';
$config['sqlPassword'] = 'forgotten';
// The database name to connect to. (This is usually same as username).
$config['sqlDatabase'] = 'tfs13';
$config['sqlDatabase'] = 'forgottenserver';
// Hostname is usually localhost or 127.0.0.1.
$config['sqlHost'] = '127.0.0.1';
@ -637,7 +637,7 @@
// What client version and server port are you using on this OT?
// Used for the Downloads page.
$config['client'] = 1098; // 954 = client 9.54
$config['client'] = 792; // 954 = client 9.54
// Download link to client.
$config['client_download'] = 'http://tibiaclient.otslist.eu/download/tibia'. $config['client'] .'.exe';