Update database configuration for Coolify

This commit is contained in:
2026-06-11 15:15:04 +07:00
parent 421152ce31
commit 1fc7c6e2c2
+4 -4
View File
@@ -1,9 +1,9 @@
<?php <?php
// api/config.php // api/config.php
define('DB_HOST', 'localhost'); define('DB_HOST', 'scs4gssg4kcocg8880wokwkc');
define('DB_USER', 'root'); define('DB_USER', 'mysql');
define('DB_PASS', ''); define('DB_PASS', 'c9glNfYV6QstyqEKkkqFkBsmtTyrcrotH3vVNak7pIrKjegy6onjQnST6pboxKhq');
define('DB_NAME', 'spbu'); define('DB_NAME', 'default');
function getDB(): mysqli { function getDB(): mysqli {
$conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME); $conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);