Browse Source

Put secrets in another file.

This commit makes it easier to make changes to the instance config
without worrying about overwriting secrets and database configuration.

It also mitigates some possibility of leaking secrets.
pull/40/head
Dedushka 3 years ago
parent
commit
47afc2ad8c
No known key found for this signature in database GPG Key ID: DC969A6BA7657A70
  1. 24
      inc/instance-config.secret.php.EXAMPLE

24
inc/instance-config.secret.php.EXAMPLE

@ -0,0 +1,24 @@
<?php
/*
* Instance Configuration Secrets
* ------------------------------
* Put secrets here to avoid accidentally leaking them in commits.
*
*/
/*
* Database configuration
*/
$config['db']['server'] = 'localhost';
$config['db']['database'] = 'lainchan';
$config['db']['prefix'] = '';
$config['db']['user'] = 'lainchan';
$config['db']['password'] = '';
/*
* Salt
*/
$config['secure_trip_salt'] = '';
$config['cookies']['salt'] = '';
Loading…
Cancel
Save