{{- if eq "" .page -}}

Welcome to the Gochan installer! This installer will help you configure Gochan, including setting the necessary directories and connecting to the SQL database, in preparation for running a fresh Gochan installation or migrating another imageboard database (if supported) to Gochan.

This does not install files like templates (yet), or provision the database. It only creates a configuration file for gochan to use.

{{- else if eq .page "license" -}}

Gochan is licensed under the BSD 3-Clause License, shown below. By using Gochan, you agree to the terms of this license,

{{- else if eq .page "paths" -}}
Output gochan.json Path {{with .cfgPaths -}} {{- else -}} ./gochan.json (current directory) {{- end -}}
Templates Directory
Document Root
Log Directory
Web Root
{{- else if eq .page "database" -}}
SQL Provider
Database Host
Database Name
Database User
Database Password
Database Prefix
Database Request Timeout (seconds)
Database Max Open Connections
Max Idle Database Connections
Max DB Connection Lifetime (minutes)
{{- else if eq .page "dbtest" -}}

{{.testResult}}

{{- else if eq .page "staff" -}} {{- with .alreadyCreated -}}

Administrator account already created. Click Next to go to miscellaneous settings (flags and

{{- else -}}

Enter a username and password for an administrator staff acount

Username
Password
Confirm Password
{{- end -}} {{- else if eq .page "pre-save" -}}

Initial configuration is complete. In the textbox below, you can see the JSON output that will be saved to {{.configPath}} on the server. After clicking Save, you can then edit it as needed. See config.md for more info

{{- else if eq .page "save" -}}

Gochan has been configured and provisioned successfully, a board has been created, and the installer server has exited. Now you can run gochan, log into the staff account you created here, and create new boards as desired. Thank you for using Gochan!

If you experience any bugs, you can report them here.

{{- else -}}

Invalid page

{{- end -}} {{- if ne .nextPage "" -}}
{{- if .skipButton -}} {{- end -}}
{{- end -}}