forked from vichan-devel/vichan
-
Notifications
You must be signed in to change notification settings - Fork 16
Configuration
Gen2 edited this page May 20, 2017
·
1 revision
Configuring NPFchan is not a complicated process; it's as easy as copying and pasting. Just remember: If you use an imageboard based on NPFchan, you should edit inc/instance-config.php
with custom values. All configuration held in inc/config.php
is the default, and will be the default on new installations. To set a configuration file, copy a configuration variable like $config['cookies']['httponly'] = true;
into instance-config.php
and edit it to your liking.
-
inc/config.php
— Default site-wide configuration file. It is not advised to edit this file. -
inc/instance-config.php
— Custom site-wide configuration file. -
<board>/config.php
— Per-board configuration. This doesn't exist by default, and you'll need to make it manually if you want to use it.
The configuration variable ($config) is just one huge associative array, occasionally split into “sections”.
-
inc/config.php
—$config
is reset with the defaults -
inc/instance-config.php
— Some$config
values are overwritten or changed. -
<board>/config.php
— Per-board configuration is changed.
inc/config.php
is filled with comments. It's a wonderful source of documentation. — Read them!