Commit graph

469 commits

Author SHA1 Message Date
Izalia Mae bec5d5f207 use gunicorn to start the server 2024-02-05 13:15:08 -05:00
Izalia Mae 02ac1fa53b make sure db connection for request is open 2024-02-04 05:17:51 -05:00
Izalia Mae 2fcaea85ae create a new database connection for each request 2024-02-04 04:53:39 -05:00
Izalia Mae e6f30ddf64 update tinysql to 0.2.4 2024-02-04 04:41:04 -05:00
Izalia Mae 64690a5c05 create new Database object for SqlCache 2024-02-04 04:40:51 -05:00
Izalia Mae 46413be2af make sure Item.updated is a datetime object if it isn't one already 2024-02-03 05:40:57 -05:00
Izalia Mae 3d81e5ef68 pass instance row to HttpClient.post 2024-02-01 21:40:27 -05:00
Izalia Mae 1668d96485 add setup questions for redis 2024-02-01 21:37:46 -05:00
Izalia Mae 4c4dd3566b cache fixes
* make sure Item.updated is a datetime object
* remove id column when creating Item objects in SqlCache
2024-02-01 11:43:17 -05:00
Izalia Mae 2d641ea183 add database and redis caching 2024-01-31 21:23:45 -05:00
Izalia Mae f2baf7f9f9 update tinysql to 0.2.3 (fixes postgres support) 2024-01-30 07:34:49 -05:00
Izalia Mae 116a04ce4d allow empty password for database setup 2024-01-29 19:55:02 -05:00
Izalia Mae 6ab6343ae7 fix ImportError on python 3.8 2024-01-29 04:26:54 -05:00
Izalia Mae 81215a83a4 Merge branch 'sql' into 'master'
switch database backend to sql

See merge request pleroma/relay!53
2024-01-27 06:08:59 +00:00
Izalia Mae ed9d423ca3 update tinysql and set min/max db connections per thread 2024-01-27 00:59:08 -05:00
Izalia Mae b59ead5d05 fix handle_follow and handle_undo 2024-01-24 19:55:11 -05:00
Izalia Mae b8aae4c1bb use correct url when fetching inbox data 2024-01-24 19:28:15 -05:00
Izalia Mae 85a4797e68 make sure bool(Response) returns True 2024-01-24 19:24:27 -05:00
Izalia Mae c2aa8c48bb ignore thread warnings in the sqlite backend for now 2024-01-24 19:20:27 -05:00
Izalia Mae 815053c06f fix the convert command 2024-01-24 01:20:23 -05:00
Izalia Mae e66be009a6 use the right name for the domain_bans table 2024-01-24 01:20:00 -05:00
Izalia Mae 09e7a8f404 update docs for new commands and config file 2024-01-24 00:48:15 -05:00
Izalia Mae fc8738afab update relay.service file to use run command 2024-01-23 22:04:07 -05:00
Izalia Mae cdb10547ec remove extra whitespace in relay.nginx 2024-01-23 22:03:44 -05:00
Izalia Mae 7a9d346642 fix linter warnings 2024-01-23 21:54:58 -05:00
Izalia Mae 485d1cd23e add plugins to pylint 2024-01-23 21:54:05 -05:00
Izalia Mae 35b3fae185 move dev requirements to dev-requirements.txt and only use flake8 for checking unused imports 2024-01-23 21:51:17 -05:00
Izalia Mae 57d7d25743 set sqlite file path relative to config path if possible 2024-01-22 06:50:31 -05:00
Izalia Mae 9cc79aa79a actually fix python packaging this time 2024-01-22 06:39:12 -05:00
Izalia Mae 8806348f95 fix python packaging 2024-01-22 06:30:28 -05:00
Izalia Mae 5f6aef1871 use postgresql/sqlite for database backend 2024-01-22 05:32:16 -05:00
Izalia Mae 9808674b98 logging: use LogLevel enum and add functions to set/get the current level 2024-01-21 06:39:49 -05:00
Izalia Mae 965ac73c6d Merge branch 'annotations' into 'master'
Add annotations and linters

See merge request pleroma/relay!52
2024-01-20 07:49:35 +00:00
Izalia Mae 3d9ba68bd1 use Message.object_id instead of Message.objectid 2024-01-16 00:33:41 -05:00
Izalia Mae 2ebb295be1 handle TypeError in Message.object_id 2024-01-16 00:33:05 -05:00
Izalia Mae b9eb67b32d version bump 2024-01-15 23:47:23 -05:00
Izalia Mae 90a1a1e0e9 remove hidden imports 2024-01-15 23:44:54 -05:00
Izalia Mae e6f2174ad4 don't use lazy import for aputils 2024-01-15 23:39:50 -05:00
Izalia Mae 9bf45a54d1 add annotations and fix linter warnings 2024-01-14 14:13:06 -05:00
Izalia Mae fdef2f708c add settings for pylint and flake8 2024-01-10 10:55:37 -05:00
Izalia Mae 3005e9b370 use format strings for logging 2024-01-10 10:49:43 -05:00
Izalia Mae dcbde6d532 rework logger to not monkey-patch the logging module 2024-01-10 10:49:05 -05:00
Izalia Mae 2c620a0d84 set minimum python version to 3.8 2024-01-09 23:43:55 -05:00
Izalia Mae 8c6ee7d57a add pylint and flake8 to dev deps 2024-01-09 23:30:43 -05:00
Izalia Mae 4feaccaa53 use View class and make Message a subclass of aputils.message.Message 2024-01-09 23:15:04 -05:00
Izalia Mae 9f3e84f9e5 ignore database file 2024-01-09 23:06:52 -05:00
Izalia Mae d6ba242d3b update aputils to 0.1.6a 2024-01-09 23:06:23 -05:00
Izalia Mae eea7dc81ea Merge branch 'upgrade-aputils' into 'master'
Bump aputils version

Closes #38

See merge request pleroma/relay!51
2023-07-15 14:12:56 +00:00
Dmytro Poltavchenko df231e3b51 Bump aputils version 2023-07-10 21:52:39 +03:00
Izalia Mae 15b1324df2 Merge branch 'zen-master-patch-50595' into 'master'
Do not check instance's actor.type in case of Pleroma/Akkoma

See merge request pleroma/relay!50
2023-01-11 03:43:59 +00:00