mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-21 04:59:49 +01:00
Merge pull request #142 from riking/fix-secrets
Add secrets.example.php, make dnsbls.php optional
This commit is contained in:
commit
eeabd49947
@ -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'] = '';
|
||||
@ -46,7 +48,8 @@
|
||||
$config['spam']['hidden_inputs_max_pass'] = 128;
|
||||
$config['ayah_enabled'] = true;
|
||||
|
||||
include "secrets.php";
|
||||
// Load database credentials
|
||||
require "secrets.php";
|
||||
|
||||
// Image shit
|
||||
$config['thumb_method'] = 'gm+gifsicle';
|
||||
@ -393,4 +396,7 @@ EOT;
|
||||
|
||||
$config['gzip_static'] = false;
|
||||
|
||||
require_once "dnsbls.php";
|
||||
// DNSBL is optional
|
||||
if (file_exists(stream_resolve_include_path("dnsbls.php"))) {
|
||||
require_once "dnsbls.php";
|
||||
}
|
||||
|
19
inc/secrets.example.php
Normal file
19
inc/secrets.example.php
Normal 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';
|
Loading…
x
Reference in New Issue
Block a user