1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-09-01 07:26:23 -07:00
No description
Find a file
Eggbertx cbb5f1ec20 Merge gochan.js and manage.js, add option to minify gochan.js
Also add manage page titles to be used for an API
2019-12-11 20:33:02 -08:00
docker Add docker compose config and improved bootstraper 2019-11-24 14:43:54 -08:00
html Merge gochan.js and manage.js, add option to minify gochan.js 2019-12-11 20:33:02 -08:00
sass Add HTML, JS, and JSON minification 2019-12-07 12:52:36 -08:00
src Merge gochan.js and manage.js, add option to minify gochan.js 2019-12-11 20:33:02 -08:00
templates Merge gochan.js and manage.js, add option to minify gochan.js 2019-12-11 20:33:02 -08:00
vagrant Add basic captcha support 2019-11-24 14:42:39 -08:00
.gitignore Store configuration-dependent variables in a JavaScript file 2019-11-29 15:08:18 -08:00
build.sh Add HTML, JS, and JSON minification 2019-12-07 12:52:36 -08:00
docker-compose.yml Add docker compose config and improved bootstraper 2019-11-24 14:43:54 -08:00
Dockerfile Add preliminary Docker stuff (still very unstable) 2019-09-19 12:50:09 -07:00
gochan-fastcgi.nginx Add *NIX installation compatibility 2019-08-01 21:05:06 -07:00
gochan-http.nginx Add *NIX installation compatibility 2019-08-01 21:05:06 -07:00
gochan.example.json Merge gochan.js and manage.js, add option to minify gochan.js 2019-12-11 20:33:02 -08:00
gochan.service Fix broken SQLite connection, update README 2019-08-09 14:25:02 -07:00
initdb_mysql.sql Add support for PostgreSQL and SQLite 2019-06-13 16:36:02 -07:00
initdb_postgres.sql Add support for PostgreSQL and SQLite 2019-06-13 16:36:02 -07:00
initdb_sqlite3.sql Fix broken SQLite connection, update README 2019-08-09 14:25:02 -07:00
LICENSE Add *NIX installation compatibility 2019-08-01 21:05:06 -07:00
README.md Update README 2019-12-04 18:40:01 -08:00
version Add HTML, JS, and JSON minification 2019-12-07 12:52:36 -08:00

Gochan

A semi-standalone imageboard server written in Go

Gochan works in a manner similar to Kusaba X, Tinyboard and others. As such, Gochan generates static HTML files which can optionally be served by a separate web server.

Demo installation: https://gochan.org

Note: Cross-compilation to macOS has been temporarily disabled. If you need macOS support, build gochan from a macOS system.

Installation

Basic installation (from a release)

  1. Extract the .tar.gz or the .zip file into a directory (for example, your home directory)
  2. Copy gochan.example.json to either gochan.json or (if you're in a UNIX-like OS) /etc/gochan/gochan.json and modify it as needed. See the Configuration section for more info.
  3. If you're using nginx, copy gochan-http.nginx, or gochan-fastcgi.nginx if UseFastCGI is set to true to /etc/nginx/sites-enabled/, or the appropriate folder in Windows.
  4. If you're using a Linux distribution with systemd, you can optionally copy gochan.service to /lib/systemd/system/gochan.service and run systemctl enable gochan.service to have it run on startup. Then run systemctl start gochan.service to start it as a background service.
    1. If you aren't using a distro with systemd, you can start a screen session and run /path/to/gochan
  5. Go to http://[gochan url]/manage?action=staff, log in (default username/password is admin/password), and create a new admin user (and any other staff users as necessary). Then delete the admin user for security.

Configuration

  1. Make sure to set DBtype, DBhost, DBname, DBusername, and DBpassword, since these are required to connect to your SQL database. Valid DBtype values are "mysql", "postgres", and "sqlite3".
    1. To connect to a MySQL database, set DBhost to "tcp(ip:3306)" or a different port, if necessary.
    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. To connect to a SQLite database, set DBhost to the path of the database file. It will be created if it does not already exist.
  2. Set DomainRegex,SiteDomain, since these are necessary in order to post and log in as a staff member.
  3. If you want to see debugging info/noncritical warnings, set verbosity to 1.

For developers (using Vagrant)

  1. Install Vagrant and Virtualbox. Vagrant lets you create a virtual machine and run a custom setup/installation script to make installation easier and faster.
  2. From the command line, cd into vagrant/ and run vagrant up
  3. After it finishes installing the Ubuntu VM, follow the printed instructions.

For developers (using Docker)

Docker support is very unstable and doesn't fully work yet.

Theme development

See sass/README.md for information on working with Sass and stylesheets.