Add Gitignore & Create Config.php

For The Always DATA version, i have to hide mdp beacause this is not a server only in tailscale tunnel. So Config.php in gitignore is a file who i have to create in always data site to store mdp for beat security falls
This commit is contained in:
2026-05-17 22:26:11 +02:00
parent c64a003f24
commit 6adb3afae4
2 changed files with 6 additions and 4 deletions
+1
View File
@@ -0,0 +1 @@
www/config.php
+5 -4
View File
@@ -1,10 +1,11 @@
<?php
header('Content-Type: application/json');
$host = '172.22.0.3';
$dbname = 'OpenPlanetsMaps';
$username = 'root';
$password = 'admin123';
$config = require_once __DIR__ . '/config.php';
$host = $config['host'];
$dbname = $config['dbname'];
$username = $config['username'];
$password = $config['password'];
try {
$options = [PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8", PDO::ATTR_EMULATE_PREPARES => false];