Load config.local.php from repo root for server-side secrets
Provides a gitignored override file for credentials like LinkedIn OAuth keys, avoiding reliance on Apache SetEnv / PHP-FPM env config. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e1f7fb14fc
commit
ac5b82c381
4 changed files with 8 additions and 3 deletions
|
|
@ -3,6 +3,10 @@ if (!defined('ROOT')) define('ROOT', dirname(__DIR__));
|
|||
|
||||
$config = require ROOT . '/config/config.php';
|
||||
|
||||
if (file_exists(ROOT . '/config.local.php')) {
|
||||
require_once ROOT . '/config.local.php';
|
||||
}
|
||||
|
||||
ini_set('session.cookie_httponly', '1');
|
||||
ini_set('session.use_strict_mode', '1');
|
||||
session_name($config['session_name']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue