Add secrets.sample.php and update .gitignore

This commit is contained in:
2026-01-02 00:03:30 +11:00
parent 7ae9491feb
commit 559a0862cd
2 changed files with 31 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
secrets.php

30
secrets.sample.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
// Centralized Secrets Configuration
// This file is gitignored and contains sensitive credentials
global $secrets;
$secrets = [];
// SSH SERVER
$secrets['ssh_username'] = 'root'; // DEFAULT: root
$secrets['ssh_password'] = 'YOUR_SSH_PASSWORD';
$secrets['ssh_host'] = 'YOUR_SSH_HOST_IP';
$secrets['ssh_port'] = '22';
// Database Credentials (User Provided)
$secrets['db_host'] = 'localhost';
$secrets['db_name'] = 'YOUR_DB_NAME';
$secrets['db_user'] = 'YOUR_DB_USER';
$secrets['db_pass'] = 'YOUR_DB_PASSWORD';
$secrets['db_root_pass'] = 'YOUR_DB_ROOT_PASSWORD';
// Shared Secrets
$secrets['md5_salt'] = 'YOUR_MD5_SALT';
// phpMyAdmin Credentials
$secrets['pma_blowfish_secret'] = 'YOUR_PMA_BLOWFISH_SECRET';
// Github Details
$secrets['github_username'] = 'YOUR_GITHUB_EMAIL';
$secrets['github_token'] = 'YOUR_GITHUB_TOKEN';