Add .gitignore, untrack config.php, add config.example.php

This commit is contained in:
danny 2026-06-14 14:37:56 +02:00
parent 1ae870a011
commit 967e1c6e0d
3 changed files with 29 additions and 15 deletions

14
.gitignore vendored Normal file
View file

@ -0,0 +1,14 @@
# DB credentials — never commit the real version
config.php
# Editor & OS noise
.DS_Store
Thumbs.db
*.swp
*.swo
# Uploads (user avatars etc.)
uploads/
# PHP cache
*.cache

15
config.example.php Normal file
View file

@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
/**
* Copy this file to config.php and fill in your database credentials.
* In Plesk: Databases → your DB → Users.
*/
return [
'host' => 'localhost',
'dbname' => 'DB_NAME',
'user' => 'DB_USER',
'pass' => 'DB_PASSWORD',
'charset' => 'utf8mb4',
];

View file

@ -1,15 +0,0 @@
<?php
declare(strict_types=1);
/**
* DB-Zugangsdaten hier eintragen.
* Findest du in Plesk unter: Datenbanken -> deine DB -> Benutzer.
*/
return [
'host' => 'localhost',
'dbname' => 'guess_appform',
'user' => 'guess_appform',
'pass' => 'Z_O9Vcpidy!ot1f7',
'charset' => 'utf8mb4',
];