From 1f8e3935bb26660822a41147c3de8b4d91e57f5f Mon Sep 17 00:00:00 2001 From: luptmoor Date: Wed, 15 Apr 2026 16:23:18 +0200 Subject: [PATCH] hostname as var --- init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.php b/init.php index 4cbdcc2..e1abea1 100644 --- a/init.php +++ b/init.php @@ -16,7 +16,7 @@ $pass = getenv('POSTGRES_PASSWORD'); PDO::ATTR_EMULATE_PREPARES => false ]; - $dsn = "pgsql:host=localhost;dbname=$db;port=5432"; + $dsn = "pgsql:host=$host;dbname=$db;port=5432"; $pdo = new PDO($dsn, $user, $pass, $opt); // Error-Message