Commit Graph

131 Commits

Author SHA1 Message Date
9410056dfb Updated caddyfile to use rate limiting and connection limits 2025-02-22 19:36:17 +11:00
21d5452055 Changed remote_addr to use X-Forwarded-For header 2025-02-22 17:54:34 +11:00
c52d546fb1 Deleted old deploy scripts 2025-02-22 17:12:36 +11:00
4c83126ed6 Updated prod deploy to use new deploy script 2025-02-22 17:12:02 +11:00
87b0e4385f Merge pull request #19 from Haelnorr/dbbackups
Made backup util check if services are online and skip if not running
2025-02-22 17:01:47 +11:00
f6ebb9a0f0 Made backup util check if services are online and skip if not running 2025-02-22 17:00:37 +11:00
ac2b16a11c Merge pull request #18 from Haelnorr/dbbackups
Fixed catastrophic bug caused by rows not being closed on db ver check
2025-02-22 16:26:53 +11:00
ca42a979c1 Fixed catastrophic bug caused by rows not being closed on db ver check 2025-02-22 16:24:58 +11:00
56b9d36b40 Merge pull request #17 from Haelnorr/dbbackups
Fixed flag dbver failing if secret key not set
2025-02-22 15:23:16 +11:00
554799754d Fixed flag dbver failing if secret key not set 2025-02-22 15:22:31 +11:00
185dda6076 Merge pull request #16 from Haelnorr/dbbackups
Fixed tester flag being defined incorrectly
2025-02-22 13:02:31 +11:00
5a25a3c482 Fixed tester flag being defined incorrectly 2025-02-22 13:01:50 +11:00
1c06fd3435 Merge pull request #15 from Haelnorr/dbbackups
Fixed migration binary being referenced incorrectly
2025-02-22 12:55:13 +11:00
8769d76e60 Merge branch 'staging' into dbbackups 2025-02-22 12:55:04 +11:00
9864057f8d Fixed migration binary being referenced incorrectly 2025-02-22 12:53:24 +11:00
be02c88623 Merge pull request #14 from Haelnorr/dbbackups
Fixed migration binary being referenced incorrectly
2025-02-22 12:50:29 +11:00
238529b19c Fixed migration binary being referenced incorrectly 2025-02-22 12:50:09 +11:00
a342a31b51 Merge pull request #13 from Haelnorr/dbbackups
Fixed issue where tests will never fail if server fails to launch
2025-02-22 12:46:16 +11:00
ef48091906 Fixed issue where tests will never fail if server fails to launch 2025-02-22 12:42:49 +11:00
e4abb0bcf7 Merge pull request #12 from Haelnorr/dbbackups
Testing db migrations updates
2025-02-22 11:42:42 +11:00
9ee5aa7b8f Updated deployment scripts to use migration on deploy 2025-02-22 11:41:36 +11:00
489c684091 Finishing migration scripts 2025-02-22 11:03:32 +11:00
5d0a26579b Finished migrate script 2025-02-20 23:56:55 +11:00
79838b4aae Created a migration package to handle the migrations 2025-02-20 23:01:39 +11:00
a575025f1f Renamed test file for safeconn and safetx to reflect new file structure 2025-02-20 22:31:20 +11:00
8bdeafee32 First version of migrate script (unfinished) 2025-02-20 22:09:35 +11:00
4b64dccbda Updated tests to use migrations for db init for consistency 2025-02-20 20:26:26 +11:00
b238a3efa7 Made the db connection check the migration version and fail on mismatch 2025-02-20 19:16:14 +11:00
f0f285301a Moved SafeTx and SafeConn to their own files 2025-02-20 19:06:41 +11:00
03519908c8 Added goose for migrations 2025-02-19 21:55:36 +11:00
6656f4ab8d Moved backup script 2025-02-19 21:29:47 +11:00
236b9654fe Created backup script 2025-02-19 20:29:20 +11:00
6018f08e74 Merge pull request #11 from Haelnorr/databaselocking
Fixed main_test never starting because of port misconfiguration
2025-02-18 23:50:43 +11:00
90821abcd6 Fixed main_test never starting because of port misconfiguration 2025-02-18 23:49:39 +11:00
ac40b67322 Merge pull request #10 from Haelnorr/databaselocking
Databaselocking
2025-02-18 23:21:24 +11:00
46dd86cdae Added tests to ensure SIGUSR1 and SIGUSR2 will toggle db lock 2025-02-18 23:18:02 +11:00
789d1e75a7 Added tests for SafeConn and SafeTx 2025-02-18 22:49:43 +11:00
90bf997578 Added 503 error page and streamlined error paging 2025-02-18 21:37:15 +11:00
1f7a9e08e6 Added error 503 popup 2025-02-18 20:53:11 +11:00
0ece08726d Added debug logging to run function 2025-02-18 20:05:41 +11:00
c0bbe687f9 Added timeout for acquiring global lock 2025-02-18 19:57:30 +11:00
38d47cdf63 Added check for attempting to acquire global lock 2025-02-18 10:37:57 +11:00
c2de8d254a Added proper debug logging to safeconn methods 2025-02-18 10:03:28 +11:00
b4b57c14cb Removed debugging stdout prints 2025-02-17 23:32:48 +11:00
9ea58b0961 Made auth middleware turn skip timeout if maintenance mode is on 2025-02-17 23:31:09 +11:00
556c93fc49 Changed to using atomics as mutex was causing deadlock 2025-02-17 23:14:13 +11:00
19f26d62a3 Removed OldConnectToDatabase 2025-02-17 21:51:09 +11:00
a8d112fdd5 Updated all code to use SafeConn and SafeTX 2025-02-17 21:39:12 +11:00
6faf168a6d Updated all code to use new SafeConn and SafeTX 2025-02-17 21:38:29 +11:00
2c61cec55c Update authentication, reauth, logout to use new transactions 2025-02-17 18:58:34 +11:00