gochan

gochan configuration

See gochan.example.json for an example gochan.json.

Server-critical stuff

Make sure gochan has read-write permission for DocumentRoot and LogDir and read permission for TemplateDir

Database configuration

Valid DBtype values are “mysql” and “postgres” (sqlite3 is no longer supported for stability reasons, though that may or may not come back).

  1. To connect to a MySQL database, set DBhost to “x.x.x.x:3306” (replacing x.x.x.x with your database server’s IP or domain) or a different port, if necessary. You can also use a UNIX socket if you have it set up, like “unix(/var/run/mysqld/mysqld.sock)”.
  2. To connect to a PostgreSQL database, set DBhost to the IP address or hostname. Using a UNIX socket may work as well, but it is currently untested.
  3. Set SiteDomain, since these are necessary in order to post and log in as a staff member.
  4. If you want to see debugging info/noncritical warnings, set verbosity to 1.
  5. If DBprefix is set (not required), all gochan table names will be prefixed with the DBprefix value. Once you run gochan for the first time, you really shouldn’t edit this value, since gochan will assume the tables are missing.

Website configuration

GeoIP/Flag configuration

Fingerprinting configuration

By default, only images are fingerprinted, but if FingerprintVideoThumbnails is set to true, the thumbnails of videos will also be checked.

Styles

Misc