diff options
author | Andrew Godwin | 2022-11-05 22:49:25 -0600 |
---|---|---|
committer | Andrew Godwin | 2022-11-05 22:49:25 -0600 |
commit | a2404e01cdbeef2ba332e147a5f2f1ca0a0310d7 (patch) | |
tree | 9aa1ae2ffad20a7afe8eac8cbe99ab9a53dcc0ca /takahe | |
parent | 56de2362a01089c8a5ca3c6e1affcade00ffdfce (diff) | |
download | takahe-a2404e01cdbeef2ba332e147a5f2f1ca0a0310d7.tar.gz takahe-a2404e01cdbeef2ba332e147a5f2f1ca0a0310d7.tar.bz2 takahe-a2404e01cdbeef2ba332e147a5f2f1ca0a0310d7.zip |
Queuing system and lazy profile fetch
Diffstat (limited to 'takahe')
-rw-r--r-- | takahe/settings.py | 2 | ||||
-rw-r--r-- | takahe/urls.py | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/takahe/settings.py b/takahe/settings.py index 3e2b75a..26fd705 100644 --- a/takahe/settings.py +++ b/takahe/settings.py @@ -25,6 +25,7 @@ INSTALLED_APPS = [ "core", "statuses", "users", + "miniq", ] MIDDLEWARE = [ @@ -113,3 +114,4 @@ CRISPY_FAIL_SILENTLY = not DEBUG SITE_NAME = "takahē" DEFAULT_DOMAIN = "feditest.aeracode.org" ALLOWED_DOMAINS = ["feditest.aeracode.org"] +IDENTITY_MAX_AGE = 24 * 60 * 60 diff --git a/takahe/urls.py b/takahe/urls.py index d6e4d8f..f8bff07 100644 --- a/takahe/urls.py +++ b/takahe/urls.py @@ -2,6 +2,7 @@ from django.contrib import admin from django.urls import path from core import views as core +from miniq import views as miniq from users.views import auth, identity urlpatterns = [ @@ -19,6 +20,8 @@ urlpatterns = [ path("identity/create/", identity.CreateIdentity.as_view()), # Well-known endpoints path(".well-known/webfinger", identity.Webfinger.as_view()), + # Task runner + path(".queue/process/", miniq.QueueProcessor.as_view()), # Django admin path("djadmin/", admin.site.urls), ] |