Commit Graph

58 Commits

Author SHA1 Message Date
spacefreak 5d2b9c3ffb Cleanup: use max of last update and start time to determine expiry time 2026-02-01 04:57:22 +01:00
spacefreak cd5979556c Refactor and further improve error handling / logging 2026-02-01 04:25:21 +01:00
spacefreak 60ebf4b387 Improve cleanup logic 2026-02-01 01:36:52 +01:00
spacefreak 105a9d4253 Handle naive datetime in database with custom database field 2026-02-01 01:27:48 +01:00
spacefreak 870a1b9f00 Improve error handling and logging 2026-02-01 00:31:16 +01:00
spacefreak 89e63858a0 Add reload function to OpenRC init script 2026-01-24 04:03:51 +01:00
spacefreak e365fa7d77 Change README.md and config.example.toml 2026-01-24 04:03:26 +01:00
spacefreak b97eb0404c Improve timezone handling, db models convert naive/timezone-aware 2026-01-24 02:27:57 +01:00
spacefreak 07e37e525c Use db model hostname validation in cli and improve exception handling 2026-01-24 00:46:48 +01:00
spacefreak cde4b879c1 Add missing docstrings and examples 2026-01-23 23:07:25 +01:00
spacefreak 255c0ad1dd Shutdown daemon gracefully 2026-01-23 22:26:46 +01:00
spacefreak a1e3ee1770 Add config reload via SIGHUP 2026-01-23 22:21:34 +01:00
spacefreak bd0c930060 Add documentation about datetime handling 2026-01-23 22:15:25 +01:00
spacefreak 2123b5169b Change _process_ip_update to always return a set of three values 2026-01-23 22:11:43 +01:00
spacefreak 5bb37fde71 Remove duplicate config defaults in ratelimit.py 2026-01-23 22:08:20 +01:00
spacefreak 444db3f190 Add hostname validation to database model 2026-01-23 22:07:34 +01:00
spacefreak 8b186d6e95 Return status constants instead of strings 2026-01-23 21:25:33 +01:00
spacefreak faa1e4afd5 Add thread_pool_size and request_timeout config settings 2026-01-23 21:20:57 +01:00
spacefreak 6c382ae60c Use MariaDB connection pooling instead of single connection 2026-01-23 21:15:42 +01:00
spacefreak 2381d2e1d2 Change to peewee DatabaseProxy to handle different DB types 2026-01-23 21:12:15 +01:00
spacefreak feb4a67291 Use proper SQL concatenation 2026-01-23 19:41:37 +01:00
spacefreak f0b924ea56 Use context manager for SMTP 2026-01-23 19:40:58 +01:00
spacefreak 6c4b876191 Improve error handling during cleanup 2026-01-23 19:40:01 +01:00
spacefreak ff48f7b016 Change README.md 2026-01-23 02:02:53 +01:00
spacefreak 65760b1d96 Start ratelimit cleanup thread before expired hostnames cleanup thread 2026-01-23 01:43:58 +01:00
spacefreak 1fd14ebbed Log notify_change boolean value lowercase 2026-01-23 01:33:52 +01:00
spacefreak 4bf325ef27 Add notify_change to log and Date header to email notifications 2026-01-23 01:29:16 +01:00
spacefreak 5744408c92 Add URL parameter to enable notification of IP changes 2026-01-23 00:51:30 +01:00
spacefreak 9f75e5e66b Switch to UTC timestamps, output in local time 2026-01-22 23:56:07 +01:00
spacefreak 9c7f4dfd1a Store timestamps in UTC and print in localtime 2026-01-22 21:56:12 +01:00
spacefreak 4bcd9f2a7f Fix README.md and config.example.toml 2026-01-22 20:33:12 +01:00
spacefreak f879532755 Generate email content from ninja2 templates 2026-01-22 20:23:13 +01:00
spacefreak 453ef1ba80 Add dependency on jinja2 2026-01-22 18:18:56 +01:00
spacefreak 9860954cf7 Call send_expiry_notification with single arguments instead of tuples 2026-01-22 17:57:00 +01:00
spacefreak 04114ab659 Refactor rate limiter and datetime formatting 2026-01-22 02:24:03 +01:00
spacefreak f297a8d740 Cleanup 2026-01-22 00:36:48 +01:00
spacefreak cb476c0a1a Fix Gentoo ebuild 2026-01-21 23:51:15 +01:00
spacefreak b75ed24f14 Fix permissions on config dir and file in README.md and Gentoo ebuild 2026-01-21 23:47:46 +01:00
spacefreak 884d64270e Fix typo in Gentoo ebuild 2026-01-21 23:43:32 +01:00
spacefreak a167361529 Fix permissions on config file in README.md and Gentoo ebuild 2026-01-21 23:42:13 +01:00
spacefreak 08d323d655 Fix permissions on log dir in README.md and Gentoo ebuild 2026-01-21 23:34:58 +01:00
spacefreak fb3fd8059b Change README.md and Gentoo ebuild 2026-01-21 22:47:53 +01:00
spacefreak ffaf038123 Overall improve DB migration and fix SQLite index migration 2026-01-21 21:35:33 +01:00
spacefreak cc40c33dc9 Fix database scheme and introduce automatic database migration 2026-01-19 23:22:16 +01:00
spacefreak 6fb38a795c Remove build.sh 2026-01-19 09:43:02 +01:00
spacefreak 00a12cc257 Rename OpenRC init script and confd file and add Gentoo ebuild 2026-01-19 01:16:04 +01:00
spacefreak 86fda89d8a Cleanup README.md and fix path in systemd service file 2026-01-18 22:24:50 +01:00
spacefreak 197415de22 Change database log messages to loglevel DEBUG 2026-01-18 21:18:23 +01:00
spacefreak 284442bb31 Add version table in preparation for future DB upgrades 2026-01-18 20:37:03 +01:00
spacefreak 66963b6634 Fix logging behaviour 2026-01-18 20:18:55 +01:00