Commit Graph

5 Commits

Author SHA1 Message Date
4439e14b6b Add "pagination"
Items per page are just handled by hard offset instead of pages. That's
all we really need

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-08-06 00:17:45 -07:00
d79899ea87 http: Add static file support
Static files are configured using a handful of config values. Static
files can be handled remotely or locally for prod or dev environments,
respectively.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-08-02 20:16:47 -07:00
af3e14a7aa Add DB_SQLITE3_PATH config option
Rather than being hardcoded

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-08-02 18:40:45 -07:00
f0cc2dd1bd 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>
2023-08-02 18:31:36 -07:00
d3f6e6f69e http: Add chanbans.config, python-dotenv dependency
* chanbans.config handles all configuration now
* python-dotenv dependency is added for basic environment-level
  configuration

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2023-08-02 17:49:07 -07:00