From 57693d85fcdf7d76312e1b460b6dfc20abc9941e Mon Sep 17 00:00:00 2001 From: wvffle Date: Tue, 19 Jul 2022 01:29:31 +0000 Subject: [PATCH] Allow anonymous access to gitpod --- api/funkwhale_api/common/management/commands/gitpod.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/funkwhale_api/common/management/commands/gitpod.py b/api/funkwhale_api/common/management/commands/gitpod.py index b1014c7bb..007be0eff 100644 --- a/api/funkwhale_api/common/management/commands/gitpod.py +++ b/api/funkwhale_api/common/management/commands/gitpod.py @@ -2,6 +2,7 @@ from django.core.management.commands.migrate import Command as BaseCommand from django.core.management import call_command from funkwhale_api.music.models import Library from funkwhale_api.users.models import User +from funkwhale_api.common import preferences import uvicorn import debugpy import os @@ -45,6 +46,9 @@ class Command(BaseCommand): user.save() + # Allow anonymous access + preferences.set("common__api_authentication_required", False) + # Download music catalog os.system("git clone https://dev.funkwhale.audio/funkwhale/catalog.git /tmp/catalog") os.system("mv -f /tmp/catalog/music /workspace/funkwhale/data")