1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-17 19:29:28 +01:00

Add example secrets.php file

This commit is contained in:
riking 2014-10-04 13:44:42 -07:00
parent 5d89342b4f
commit edf98dbee3
2 changed files with 21 additions and 0 deletions

View File

@ -10,6 +10,8 @@
require_once "lib/htmlpurifier-4.5.0/library/HTMLPurifier.auto.php";
require_once "8chan-functions.php";
// Note - you may want to change some of these in secrets.php instead of here
// See the secrets.example.php file
$config['db']['server'] = 'localhost';
$config['db']['database'] = '8chan';
$config['db']['prefix'] = '';

19
inc/secrets.example.php Normal file
View File

@ -0,0 +1,19 @@
<?php
/*
* Secrets for configuration
*
* Included from instance-config.php.
*
* Copy this file to secrets.php and edit.
*/
$config['db']['server'] = 'localhost';
$config['db']['database'] = '8chan';
//$config['db']['prefix'] = '';
$config['db']['user'] = 'eightchan-user';
$config['db']['password'] = 'mysecretpassword';
// Consider generating these from the following command.
// $ cat /proc/sys/kernel/random/uuid
$config['secure_trip_salt'] = 'generate-a-uuid';
$config['cookies']['salt'] = 'generate-a-uuid';