http: Add the HTTP_ROOT config option and a function that uses it

HTTP_ROOT is the server's root directory to serve from, in case your
domain uses something else.

This is also added to the HTML templates.

Also added a news.html template for any sitewide news.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2023-08-02 18:31:36 -07:00
parent d3f6e6f69e
commit f0cc2dd1bd
7 changed files with 62 additions and 37 deletions

View File

@@ -6,3 +6,7 @@
# Domain name of the server
HTTP_DOMAIN=domain.com
# Root of the HTTP server. Defaults to "/"
# If you host other things on your domain, you may want to update this to be "/bans" or something.
#HTTP_ROOT=/