diff --git a/docker/services/keycloak/keycloak_swh_setup.py b/docker/services/keycloak/keycloak_swh_setup.py --- a/docker/services/keycloak/keycloak_swh_setup.py +++ b/docker/services/keycloak/keycloak_swh_setup.py @@ -151,9 +151,9 @@ SERVER_URL, ADMIN["username"], ADMIN["password"], REALM_NAME ) -for (client_name, client_uri) in [ - (CLIENT_WEBAPP_NAME, "http://localhost:5004/*"), - (CLIENT_DEPOSIT_NAME, "http://localhost:5006/*"), +for (client_name, redirect_uris) in [ + (CLIENT_WEBAPP_NAME, ["http://localhost:5004/*", "http://localhost:5080/*"]), + (CLIENT_DEPOSIT_NAME, ["http://localhost:5006/*"]), ]: # create swh-web public client KEYCLOAK_ADMIN.create_client( @@ -162,7 +162,7 @@ "clientId": client_name, "surrogateAuthRequired": False, "enabled": True, - "redirectUris": [client_uri,], + "redirectUris": redirect_uris, "bearerOnly": False, "consentRequired": False, "standardFlowEnabled": True, diff --git a/docker/services/swh-web/entrypoint.sh b/docker/services/swh-web/entrypoint.sh --- a/docker/services/swh-web/entrypoint.sh +++ b/docker/services/swh-web/entrypoint.sh @@ -35,7 +35,7 @@ echo "starting the swh-web server" exec gunicorn --bind 0.0.0.0:5004 \ --threads 2 \ - --workers 2 \ + --workers 32 \ --timeout 3600 \ --config 'python:swh.web.gunicorn_config' \ 'django.core.wsgi:get_wsgi_application()'