1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-09-07 08:36:23 -07:00

(Mostly) finish the configuration web interface, remove all _img fields since text boards won't happen

This commit is contained in:
Joshua Merrell 2018-08-09 00:04:45 -07:00
parent 0ef760dd61
commit c700e4c0ce
20 changed files with 415 additions and 379 deletions

View file

@ -1,22 +1,10 @@
<h2>Config editor</h2>
{{if ne .status ""}}{{.status}}<hr />{{end}}
Some fields omitted because they can not be (safely) edited from the web interface while Gochan is running.
Edit these directly in gochan.json, then restart Gochan.<br />
<span class="warning">This config editor isn't fully stable so MAKE BACKUPS!</span>
<form action="/manage?action=config" method="POST">
<table>
<tr><th>Name</th><th>Value</th><th>Description</th></tr>
<tr><th>DocumentRoot</th><td><input type="text" value="{{.config.DocumentRoot}}"/></td></tr>
<tr><th>TemplateDir</th><td><input type="text" value="{{.config.TemplateDir}}" /></td></tr>
<tr><th>LogDir</th><td><input type="text" value="{{.config.LogDir}}" /></td></tr>
<tr><th>Lockdown</th><td><input type="checkbox" {{if .config.Lockdown}}checked{{end}}/></td></tr>
<tr><th>LockdownMessage</th><td><input type="text" value="{{.config.LockdownMessage}}" /></td></tr>
<tr><th>UseSillytags</th><td><input type="checkbox" /></td></tr>
<tr><th>Modboard</th><td><input type="text" value="{{.config.Modboard}}"></td></tr>
<tr><th>SiteName</th><td><input type="text" value="{{.config.SiteName}}" /></td></tr>
<tr><th>SiteSlogan</th><td><input type="text" value="{{.config.SiteSlogan}}" /></td></tr>
<tr><th>SiteHeaderURL</th><td><input type="text" value="{{.config.SiteHeaderURL}}" /></td></tr>
{{/*<tr><th>SiteWebfolder</th><td><input type="text" value="{{.config.SiteWebFolder}}" /></td></tr>*/}}
<tr><th>DomainRegex</th><td><input type="text" value="{{.config.DomainRegex}}" /></td><td>Don't touch this unless you know what you're doing! This could fuck your shit up<br />Default: (https|http)://(.*)/(.*)</td></tr>
</table>
<input name="do" value="save" type="hidden" />
{{generateConfigTable}}<br />
<input type="submit" />
</form>