You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
apogee/src/view/admin/server-setup.html.template

78 lines
2.1 KiB
HTML

<html>%(/*
vim: filetype=html
*/)
<body>
<h1>Welcome to Apogee</h1>
<p>
Apogee is a single-user Activity Pub federated server intended for self-hosting.
</p>
<h2>Server Settings</h2>
<form method="POST">
<h3>HTTP</h3>
<table width='100%%'>
<tr>
<td width="15%%"><b>ICANN Domain Name:</b></td>
<td><input name="icann_domain" type="text" value="%s{ g_server->icann_domain ? g_server->icann_domain : "" }"/></td>
<td></td>
</tr>
<tr>
<td><b>Listen Address:</b></td>
<td><input name="address" type="text" value="%s{ g_server->http_settings.bind_address ? g_server->http_settings.bind_address : "0.0.0.0" }"/></td>
<td></td>
</tr>
<tr>
<td><b>Listen Port:</b></td>
<td><input name="port" type="text" value="%d{ g_server->http_settings.bind_port }" /></td>
<td></td>
</tr>
<tr>
<td><b>User Agent:</b></td>
<td><input name="useragent" type="text" value="%s{ g_server->user_agent }" /></td>
<td></td>
</tr>
</table>
<h3>Tor</h3>
<table width='100%%'>
<tr>
<td width="15%%"><b>Disable:<b></td>
<td><input name="disable_tor" type="checkbox" %s{ view_checkbox(g_server->disable_tor) }/></td>
<td></td>
</tr>
<tr>
<td><b>SOCKS Port:<b></td>
<td><input name="socks_port" type="text" value="%d{ g_server->tor_socks_port }" /></td>
<td></td>
</tr>
</table>
<h3>Other</h3>
<table width='100%%'>
<tr>
<td width="15%%"><b>Outbox Discard Limit:</b></td>
<td><input name="outbox_discard_limit" type="text" value="%d{ g_server->outbox_discard_limit }" /></td>
<td></td>
</tr>
<tr>
<td><b>Debug Mode:</b></td>
<td><input name="debug" type="checkbox" %s{ view_checkbox(g_server->debug) }/></td>
<td>Greatly increases server verbosity</td>
</tr>
<tr>
<td><b>Developer Mode:</b></td>
<td><input name="develop" type="checkbox" %s{ view_checkbox(g_server->develop) }/></td>
<td>Change server behavior to suit developers</td>
</tr>
<tr>
<td><b>Server Disabled:</b></td>
<td><input name="disabled" type="checkbox" %s{ view_checkbox( g_server->disabled ) }/></td>
<td>Turn the entire server off</td>
</tr>
</table>
<br/>
<input type="submit" />
</form>
</body>
</html>