From d6f5d7f057e688a3fb27daf07e550606ae0fead9 Mon Sep 17 00:00:00 2001 From: Senko-san Date: Wed, 10 Jun 2026 14:08:20 +0300 Subject: [PATCH] chore: enable registration env + bump backend/webui submodules Add ALLOW_REGISTRATION + PUBLIC_ENABLE_REGISTRATION (default true) to .env.example and bump both submodules to the registration-flow commits. Co-Authored-By: Claude Opus 4.8 --- .env.example | 5 +++++ mcma-backend | 2 +- mcma-webui | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 8e90669..3048141 100644 --- a/.env.example +++ b/.env.example @@ -32,6 +32,9 @@ REDIS_URL=redis://localhost:6379/0 JWT_SECRET=change-me-in-prod ACCESS_TOKEN_TTL_SECONDS=900 REFRESH_TOKEN_TTL_SECONDS=2592000 +# Public self-service sign-up (POST /auth/register). Set to false to make +# accounts admin-only. Backend authority; pair with PUBLIC_ENABLE_REGISTRATION. +ALLOW_REGISTRATION=true # media / storage (paths inside the container) MEDIA_PATH=/data/media @@ -51,3 +54,5 @@ MUSICBRAINZ_USER_AGENT=mcma-backend/0.1.0 ( https://github.com/your/repo ) # ---- Frontend (webui) ------------------------------------------------ # Served same-origin behind nginx, so the default '/api/v1' just works. PUBLIC_API_BASE_URL=/api/v1 +# Show the public sign-up UI. Keep in sync with ALLOW_REGISTRATION above. +PUBLIC_ENABLE_REGISTRATION=true diff --git a/mcma-backend b/mcma-backend index c72d195..14c1bc1 160000 --- a/mcma-backend +++ b/mcma-backend @@ -1 +1 @@ -Subproject commit c72d19599a85ca7abe636e2e30eb33b1325722fc +Subproject commit 14c1bc16e01d8b7bb51696c4fed11e322369d474 diff --git a/mcma-webui b/mcma-webui index 55aa893..538cfb9 160000 --- a/mcma-webui +++ b/mcma-webui @@ -1 +1 @@ -Subproject commit 55aa8933af492cc9f328136ab8ee5677b919cbb3 +Subproject commit 538cfb9c5bcddbf3f12701f69a45aa1eab3432f7