mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-05 15:27:53 +10:00
API fixes and add actors endpoints
This commit is contained in:
@@ -12,8 +12,12 @@ from archivebox.config.django import setup_django
|
||||
setup_django(in_memory_db=False, check_db=True)
|
||||
|
||||
|
||||
# from channels.auth import AuthMiddlewareStack
|
||||
# from channels.security.websocket import AllowedHostsOriginValidator
|
||||
from channels.routing import ProtocolTypeRouter # , URLRouter
|
||||
from django.core.asgi import get_asgi_application
|
||||
from channels.routing import ProtocolTypeRouter
|
||||
|
||||
# from core.routing import websocket_urlpatterns
|
||||
|
||||
|
||||
django_asgi_app = get_asgi_application()
|
||||
@@ -21,6 +25,9 @@ django_asgi_app = get_asgi_application()
|
||||
application = ProtocolTypeRouter(
|
||||
{
|
||||
"http": django_asgi_app,
|
||||
# Just HTTP for now. (We can add other protocols later.)
|
||||
# only if we need websocket support later:
|
||||
# "websocket": AllowedHostsOriginValidator(
|
||||
# AuthMiddlewareStack(URLRouter(websocket_urlpatterns))
|
||||
# ),
|
||||
}
|
||||
)
|
||||
|
||||
@@ -326,6 +326,12 @@ STORAGES = {
|
||||
# },
|
||||
}
|
||||
|
||||
CHANNEL_LAYERS = {
|
||||
"default": {
|
||||
"BACKEND": "channels.layers.InMemoryChannelLayer"
|
||||
}
|
||||
}
|
||||
|
||||
################################################################################
|
||||
### Security Settings
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user