Commit graph

128 commits

Author SHA1 Message Date
Kopper
6b1d84801e [backend] Implement infrastructure for outbox backfill 2025-01-07 01:42:15 +03:00
Laura Hausmann
ccdc816c26
[backend] Update ReSharper rules 2024-11-20 01:22:53 +01:00
Laura Hausmann
a762a9201e
[backend/core] Revert IAsyncEnumerable naming 2024-11-20 01:12:32 +01:00
Laura Hausmann
7dec2514da
[sln] Apply code style 2024-11-20 00:48:29 +01:00
Laura Hausmann
4356a47b9d
[backend/asp] Make services runtime-discoverable 2024-11-18 19:02:44 +01:00
Laura Hausmann
705e061f74
[backend/asp] Refactor middleware stack
This commit splits the request pipeline conditionally instead of invoking every middleware in the stack.

It also simplifies middleware instantiation by using runtime discovery, allowing for Plugins to add Middleware.
2024-11-18 19:02:44 +01:00
Laura Hausmann
86762dc386
[backend/asp] Make BlazorSsrHandoffMiddleware less hacky 2024-11-18 19:02:43 +01:00
Laura Hausmann
2c0e0d0922
[backend/openapi] Don't regenerate OpenAPI schemas files on every request 2024-11-18 19:02:43 +01:00
Laura Hausmann
ff59b07035
[backend/federation] Add short-lived cache for non-specific federation requests 2024-11-18 19:02:42 +01:00
pancakes
71a12261a4
[backend/api] Limit follow list imports to twice every 30 mins 2024-10-31 20:48:52 +01:00
pancakes
137dc0d0e6
[backend/core] Move import/export to ImportExportService and resolve imported users 2024-10-31 20:48:07 +01:00
Laura Hausmann
4b5d76961f
[backend/api] Add PaginationWrapper<TData> & associated helper methods 2024-10-24 18:20:48 +02:00
pancakes
3218de9f56 [backend] Implement RenderBite, BiteService and endpoints for note and user 2024-10-23 05:04:55 +02:00
Laura Hausmann
3a346d5a22
[backend/razor] Add admin dashboard (Admin-FE)
Currently available sections: instance metadata, user management, federation control, relays, plugins & queue dashboard.
Planned: sections: configuration, logs, policies & reports.
2024-10-11 05:41:52 +02:00
Laura Hausmann
a5a2c0b169
[backend/core] Add basic reject policies, along with a highly extensible system for rewrite policies (ISH-16) 2024-10-09 04:34:23 +02:00
Laura Hausmann
c1e348b0d5
[backend/asp] Increase JsonSerializer MaxDepth to 256
200 is the maximum required by the note descendants/ascendants tree, so 256 is that + some margins. Cycle detection is unaffected by this change.
2024-10-03 00:47:30 +02:00
Laura Hausmann
9d1a21e2d9
[backend/razor] Move public preview to Blazor SSR (razor components) 2024-10-02 02:17:51 +02:00
Laura Hausmann
df26db0585
[backend/federation] Add relay support (ISH-266) 2024-09-28 00:32:43 +02:00
Laura Hausmann
9789c8452e
[backend/razor] Show login button when displaying public preview disabled error page 2024-09-24 02:36:29 +02:00
Kopper
83e830b5df
[backend/configuration] Add configuration for backfill of note replies 2024-09-15 02:05:18 +02:00
Laura Hausmann
173fbfb835
[backend/asp] Return error responses as HTML/XML/JSON depending on accept header 2024-08-16 01:00:43 +02:00
Laura Hausmann
e379ff3f60
[backend/configuration] Add config validation for the image processing pipeline 2024-08-12 03:21:04 +02:00
Laura Hausmann
c07bb35548
[backend/drive] Refactor ImageProcessor into a modular system
This commit lays the groundwork for a user-configurable image processing pipeline. It has exactly the same behavior as the old ImageProcessor, just modular & compartmentalized. It also adds support for AVIF & JXL encoding, though no code paths call it just yet.
2024-08-12 03:21:03 +02:00
Laura Hausmann
7e4282b386
[backend/drive] Switch to stream processing for remote media
This makes sure that files larger than the configured maximum remote media cache size are not loaded into memory (if the size is known), or are only loaded into memory until the configured maximum size before getting discarded (if the size is not known)
2024-07-28 23:32:04 +02:00
Laura Hausmann
15d955c478
[backend/core] Limit HttpClient buffer size to 1MiB, except DriveService from this policy (until proper limits are in place there) 2024-07-28 22:06:33 +02:00
Laura Hausmann
0f400e8023
[backend/queue] Remove cluster mode (ISH-141)
This is wontfix for now, though we might reevaluate this later.
2024-07-25 00:00:43 +02:00
Laura Hausmann
4a2ee992c2
[backend] Disable code formatting in some regions for better readability 2024-07-04 19:14:26 +02:00
Laura Hausmann
a911c7c7f6
[backend] Code cleanup 2024-07-04 18:59:05 +02:00
Laura Hausmann
52894f79b0
[backend/asp] Update rate limiting rules 2024-07-04 18:58:57 +02:00
Laura Hausmann
374d9d5ebf
[backend/api] Add note refetch endpoint (ISH-352) 2024-07-04 18:57:17 +02:00
Laura Hausmann
3316a391d5
[backend] Refactor SignalR namespace 2024-07-04 18:27:14 +02:00
Laura Hausmann
0a89a228e3
[backend] Refactor Controllers folder 2024-07-04 18:17:50 +02:00
Laura Hausmann
2c2842de50
[shared] Code cleanup 2024-07-04 18:02:00 +02:00
Laura Hausmann
e0461ee3fd
[shared] Refactor namespaces 2024-07-04 17:53:11 +02:00
Kopper
27f6e3790f [backend/api] Add emoji pack importer 2024-07-03 00:57:47 +02:00
Laura Hausmann
df3a7bdfe5
[backend] Apply formatting rules 2024-06-29 01:06:19 +02:00
Laura Hausmann
259a21b273
[backend/database] Fix possible stall / race condition on first startup in EntityFrameworkCoreXmlRepositoryAsync 2024-06-23 00:54:34 +02:00
Laura Hausmann
3e0a5b5759
[backend/configuration] Allow configuring of parameter logging for database exceptions 2024-06-21 16:24:03 +02:00
Laura Hausmann
32d6cb555d
[backend/configuration] Allow configuring of queue job retention 2024-06-21 14:42:00 +02:00
Laura Hausmann
8732f30563
[backend/logging] Display log level in text form in systemd logs 2024-06-16 21:36:38 +02:00
Laura Hausmann
9c369bdf4a
[backend/logging] Detect whether we're running under systemd & configure logging accordingly 2024-06-16 21:12:35 +02:00
Laura Hausmann
3467fe952c
[backend/database] Add support for connection multiplexing 2024-06-10 19:26:21 +02:00
Laura Hausmann
aa21e4b05a
[backend/queue] Make queue concurrency configurable 2024-06-10 18:18:39 +02:00
Laura Hausmann
5771e43dda
[backend/federation] Add configuration option for limiting the number of concurrent federation requests (ISH-338) 2024-06-10 18:18:23 +02:00
Laura Hausmann
55250e59f0
[backend/swagger] Set SwaggerDoc versions correctly (ISH-350) 2024-05-27 15:21:43 +02:00
Laura Hausmann
ed594731de
[backend/asp] Rate-limit by user, then IP address instead of globally 2024-05-03 17:59:05 +02:00
Laura Hausmann
ba15058e5c
[backend/api] Allow CORS from all origins for FallbackController (ISH-301) 2024-05-02 22:42:45 +02:00
Laura Hausmann
a2077244f8
[backend/drive] Make image processor pluggable 2024-05-01 21:44:49 +02:00
Laura Hausmann
f9cc63a179
[backend] Add object storage migrator (ISH-30) 2024-04-23 01:23:34 +02:00
Laura Hausmann
86c0ab02b5
[backend/api] Switch to a shared JsonSerializerOptions object instead of explicitly specifying json property names via attributes 2024-04-22 19:55:00 +02:00