Commit Graph

23 Commits

Author SHA1 Message Date
Iris System
5e60dec6ec fix(api, docs): send HTTP 400 on empty User-Agent, update docs 2023-02-27 09:56:00 +13:00
spiral
5da3c84bce feat(api): block empty user-agents 2023-02-15 12:58:59 -05:00
Ambre Bertucci
95389e8df8
feat(api): allow custom user-agents in cors headers (#520)
Firefox's (correct) CORS implementation considers `User-Agent` as a forbidden header and requires the server to explicitly opt into custom UAs by allowing this header in `Access-Control-Allow-Headers`.

This commit enables CSR apps to correctly communicate which tools they are part of.
2023-02-15 17:42:22 +00:00
spiral
b904be939a feat(api): log requests as json instead of plaintext 2023-02-11 11:13:46 -05:00
spiral
8432f00996 chore: remove plausible analytics entirely 2023-01-15 17:09:13 +00:00
spiral
d04f3cf1ad
fix(stats): fix table name in get_message_count 2022-12-17 01:23:12 +00:00
spiral
6c7abeb3de
feat(web-proxy): add plausible.pluralkit.me 2022-12-16 22:24:06 +00:00
spiral
90d94d9330
fix(web-proxy): wrong api redirect 2022-12-10 16:51:58 +00:00
spiral
8e0454a13b
chore(web-proxy): update remote addresses for api/dashboard 2022-12-07 11:26:00 +00:00
spiral
971b89e201
fix(stats): typo 2022-12-06 11:06:32 +00:00
spiral
c547901e00
feat(stats): push guild count to bot status 2022-12-06 10:45:38 +00:00
spiral
d1d0faaa7e
feat(stats): don't require a stats database url 2022-12-06 10:45:07 +00:00
spiral
98b6e726e7
fix(stats): fix build 2022-12-03 12:42:54 +00:00
spiral
8a727c6e80
feat(web-proxy): throw error when trying to access apiv1 on apiv2 2022-12-03 12:00:41 +00:00
spiral
372eef72f4
fix(web-proxy): fix dashboard cache headers, force path lowercase in metrics 2022-12-03 11:59:36 +00:00
spiral
939a727969
fix(stats): use pooled connections to postgres 2022-12-03 11:58:30 +00:00
spiral
bf7747ab34
feat: split out messages table from main database 2022-11-23 09:17:19 +00:00
spiral
09ac002d26
fix(stats): actually add sentry to go modules 2022-11-23 07:46:58 +00:00
spiral
898d23d733
fix(stats): fix crash when messages task fails, add Sentry integration 2022-11-23 05:17:56 +00:00
spiral
4ea21177ec
fix(web-proxy): actually working metrics, misc fixes 2022-11-23 03:24:36 +00:00
spiral
b95f51fff4
feat(api): create api proxy/ratelimiting/metrics 2022-11-18 02:54:37 +00:00
spiral
f864498392
fix: scheduled tasks runner docker build 2022-07-14 19:00:01 +02:00
spiral
5097eb9ce2
refactor: move scheduled_tasks service to services/ folder 2022-07-10 01:13:35 -04:00