Remove ALLOW_REGISTRATION env var — managed via admin UI instead

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
inputnoise
2026-05-25 20:16:15 +02:00
parent 1827dd6c4e
commit 7194ec45ec
4 changed files with 1 additions and 9 deletions

View File

@@ -6,8 +6,5 @@ SECRET_KEY=changeme-use-a-real-secret
# Optional: path on the host where downloads are stored # Optional: path on the host where downloads are stored
DOWNLOAD_PATH=./downloads DOWNLOAD_PATH=./downloads
# Optional: disable public registration after you've created your account
ALLOW_REGISTRATION=true
# Optional: Jellyfin integration URL # Optional: Jellyfin integration URL
JELLYFIN_URL= JELLYFIN_URL=

View File

@@ -10,7 +10,6 @@ class Settings(BaseSettings):
algorithm: str = "HS256" algorithm: str = "HS256"
access_token_expire_minutes: int = 60 * 24 * 7 # 1 week access_token_expire_minutes: int = 60 * 24 * 7 # 1 week
jellyfin_url: str = "" jellyfin_url: str = ""
allow_registration: bool = True
settings = Settings() settings = Settings()

View File

@@ -133,10 +133,7 @@ def on_startup():
db.commit() db.commit()
# Seed system_config from env if not already set # Seed system_config from env if not already set
if not db.query(SystemConfig).filter_by(key="allow_registration").first(): if not db.query(SystemConfig).filter_by(key="allow_registration").first():
db.add(SystemConfig( db.add(SystemConfig(key="allow_registration", value="true"))
key="allow_registration",
value="true" if settings.allow_registration else "false",
))
db.commit() db.commit()
# Apply user's saved concurrent download limit on startup # Apply user's saved concurrent download limit on startup

View File

@@ -12,7 +12,6 @@ services:
DOWNLOAD_PATH: /downloads DOWNLOAD_PATH: /downloads
SECRET_KEY: ${SECRET_KEY:-changeme} SECRET_KEY: ${SECRET_KEY:-changeme}
JELLYFIN_URL: ${JELLYFIN_URL:-} JELLYFIN_URL: ${JELLYFIN_URL:-}
ALLOW_REGISTRATION: ${ALLOW_REGISTRATION:-true}
ports: ports:
- "8000:8000" - "8000:8000"