Commit Graph

285 Commits

Author SHA1 Message Date
Georg Krause 02bb83e3f4 fix(api): Fix password reset via email
The original serializes assumes if allauth is installed, its also used
for the token generation. Thats not the case for us, so we need to
overwrite this behavior

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2565>
2023-08-31 17:51:46 +00:00
jo abadf6c9fb
style: format file with black==23.7.0 2023-07-25 19:04:32 +02:00
jo 3028672096
fix(api): prefer str over dict for the CACHE_URL setting
This fix the ability to reuse the CACHE_URL with other settings such as
CELERY_BROKER_URL.
2023-04-19 12:47:24 +02:00
jo ca3106828d
refactor(api): rename CACHE_DEFAULT to CACHE_URL_DEFAULT 2023-04-19 12:40:41 +02:00
jo 83b2aa0ad8
fix(api): move docker cache settings to django settings 2023-04-14 13:17:55 +02:00
jo e4793f06e8
refactor: use global IS_DOCKER_SETUP setting 2023-04-14 12:27:52 +02:00
jo 639d5b152f docs: fix warnings
- fix sphinx multi version allowlist regex values
2023-02-28 19:39:07 +00:00
jo c07aa0dbec fix(api): postgres connection details in docker setup
We properly recognize the docker setup to generate DATABASE_URL configuration.

Fix #2036

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2326>
2023-01-23 08:51:16 +01:00
jo 216a858010 feat(api): split DATABASE_URL into multiple config variables
Introduces new database environment variables while keeping
backward compatibility with the now deprecated
POSTGRES_ENV_POSTGRES_USER POSTGRES_ENV_POSTGRES_PASSWORD
environment variables.

DATABASE_URL defaults to an auto generated url using the
`DATABASE_HOST`, `DATABASE_PORT`, `DATABASE_USER`,
`DATABASE_PASSWORD` and `DATABASE_NAME` variables.

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2313>
2023-01-12 18:23:50 +00:00
Georg Krause 62653a2f62 chore: Move database url composition from custom script to django settings
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2313>
2023-01-12 18:23:50 +00:00
wvffle 57ca334887 Fix cookies not being set on new frontend deployment 2022-12-13 13:58:11 +00:00
Georg Krause ca9e3c7054 Remove all /front/ occurences
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2039>
2022-12-05 13:59:05 +00:00
jo 054a9e54f5
docs: fix spelling errors (pre-commit) 2022-11-24 01:43:36 +01:00
jo 8d9946d35a refactor: upgrade code to >=python3.7 (pre-commit)
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2189>
2022-11-23 22:08:55 +00:00
jo cff619679b
chore: format files using isort (pre-commit) 2022-11-23 21:55:37 +01:00
Philipp Wolfer 95e803ded5 Fix setting ASGI http protocol handler 2022-11-12 18:15:48 +00:00
JuniorJPDJ 26fc479b57 Update dependency channels and channels-redis to v4 (develop) 2022-11-08 19:46:58 +00:00
Georg Krause 68cc6d9120 chore(oauth): Update Django OAuth Toolkit to version 2.2.0 2022-11-08 07:34:49 +00:00
Ciarán Ainsworth 29e92fda2f Resolve "New embedded player doesn't work on Mastodon" 2022-11-06 06:58:03 +00:00
petitminion 78c3764cc6 Fix remote instance ping 2022-10-27 15:46:01 +00:00
Petitminion 0cb3457378 New task checking if remote instance is reachable to avoid playback latence 2022-10-27 12:20:31 +00:00
Georg Krause 9d2a1da039
fix(spa): Adjust URL configuration path 2022-10-19 13:02:38 +02:00
Georg Krause 871ecd664f
chore(urls): Remove moved file 2022-10-19 13:02:38 +02:00
Georg Krause 72877e31ed
feat(api): Prepare API for version 2 2022-10-19 13:02:37 +02:00
petitminion 605b2fee9a Delete refresh actor data task 2022-10-16 10:44:09 +00:00
Georg Krause f1d50d0c17 chore(openapi): Exclude /api/v1/oauth/authorize from the specs since its not supported yet 2022-10-13 09:42:12 +00:00
Georg Krause 0629f322c3
Replace django-rest-auth with dj-rest-auth 2022-10-13 11:09:18 +02:00
Georg Krause ff1a614861 Resolve "Refactor mutations endpoints" 2022-10-08 17:55:09 +00:00
Georg Krause 301cea927a Align openapi specs to the actual API 2022-09-28 17:53:49 +00:00
wvffle 68face201b Rename operation ids 2022-09-27 09:30:26 +00:00
Kasper Seweryn 2c70040a2b Fix unused var typescript error in generated API client NOCHANGELOG 2022-09-23 16:40:23 +00:00
Georg Krause b3f31aeea2
Add version to sentry tracking 2022-08-14 16:27:55 +02:00
Georg Krause 14591adaea
Add celery integration to sentry tracking 2022-08-14 16:27:31 +02:00
Georg Krause 9ce3022427
Add instance as sentry tag 2022-08-13 11:05:07 +02:00
Georg Krause d36a5099f3
Pass debug setting to sentry 2022-08-11 20:13:32 +02:00
Georg Krause 879460adaf
Fix performance tracking for sentry and lower samplerate 2022-08-11 19:18:30 +02:00
Georg Krause 88c7866270 feat(Logging): Add Sentry SDK to report errors at the backend 2022-08-06 20:36:39 +00:00
Ciarán Ainsworth 01c978cdcf Resolve "Provide docs to help with migration Debian 10 -> 11" 2022-07-27 18:18:29 +00:00
Ciarán Ainsworth ae4b113708 Resolve "Follow-up from "Document log level"" 2022-07-27 11:14:43 +00:00
Ciarán Ainsworth d9cfa167c6 Fix OpenAPI generation 2022-07-20 12:31:57 +00:00
JuniorJPDJ 94fcd48f2a fix(flake8): disable error on api/config/__init__.py import 2022-07-16 18:17:26 +02:00
Georg Krause 0ee20f400c
Fix formatting 2022-07-16 09:21:33 +02:00
Georg Krause 1fa648ecea
Only swagger for /api/v1 2022-07-16 09:17:12 +02:00
Georg Krause 098fe7e119
Fix swagger generation 2022-07-15 20:14:28 +02:00
Ciarán Ainsworth 541df722ef Minor admin docs updates 2022-07-03 14:13:58 +00:00
Ciarán Ainsworth 17f1941b0b Rewrite admin documentation 2022-07-01 09:02:29 +00:00
Marcos Peña 95b5b99484 Fix embed widget not working 2022-06-13 09:53:36 +00:00
petitminion 804d8bcefd Add task to refresh actor data in the cache (#1392) 2022-06-11 06:34:11 +00:00
petitminion 50f002fa73 Create an scan Library celery task 2022-05-15 10:56:39 +00:00
Georg Krause e3a28b57d1
Fix formatting 2022-05-07 11:36:44 +02:00