From 46d987efdccc07ce43a87f61e3b50f5bec0278da Mon Sep 17 00:00:00 2001 From: Dedushka Date: Sun, 17 Jan 2021 15:40:30 -0500 Subject: [PATCH] Remove secrets, require `instance-config.secret.php` --- .gitignore | 3 +++ inc/instance-config.php | 17 ++++------------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 493d4027..635c426b 100644 --- a/.gitignore +++ b/.gitignore @@ -74,3 +74,6 @@ stylesheets/fonts #Images from twemoji js/twemoji/16x16/ + +#Secrets +*.secret.php \ No newline at end of file diff --git a/inc/instance-config.php b/inc/instance-config.php index 083c499e..52559ece 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -8,6 +8,10 @@ * You can copy values from config.php (defaults) and paste them here. */ +if (file_exists("instance-config.secret.php")) { + require_once "instance-config.secret.php"; +} + /* * Front page configurations. */ @@ -67,19 +71,7 @@ $config['custom_categories'] = array( ), ); -/* - * Database and site wide configurations - */ - -$config['db']['server'] = 'localhost'; -$config['db']['database'] = 'lainchan'; -$config['db']['prefix'] = ''; -$config['db']['user'] = 'lainchan'; -$config['db']['password'] = ''; - - $config['cookies']['mod'] = 'mod'; -$config['cookies']['salt'] = 'MGYwNjhlNjU5Y2QxNWU3YjQ3MzQ1Yj'; $config['flood_time'] = 0; $config['flood_time_ip'] = 0; @@ -96,7 +88,6 @@ $config['threads_per_page'] = 10; $config['max_pages'] = 36; $config['threads_preview'] = 5; $config['root'] = '/'; -$config['secure_trip_salt'] = 'ODQ2NDM0ODlmMmRhNzk2M2EyNjJlOW'; //Banners $config['url_banner'] = '/banners.php';