diff --git a/.env.example b/.env.example index c21a9f0..6b2f5ca 100644 --- a/.env.example +++ b/.env.example @@ -6,8 +6,5 @@ SECRET_KEY=changeme-use-a-real-secret # Optional: path on the host where downloads are stored DOWNLOAD_PATH=./downloads -# Optional: disable public registration after you've created your account -ALLOW_REGISTRATION=true - # Optional: Jellyfin integration URL JELLYFIN_URL= diff --git a/backend/config.py b/backend/config.py index 1e03ecf..37bca64 100644 --- a/backend/config.py +++ b/backend/config.py @@ -10,7 +10,6 @@ class Settings(BaseSettings): algorithm: str = "HS256" access_token_expire_minutes: int = 60 * 24 * 7 # 1 week jellyfin_url: str = "" - allow_registration: bool = True settings = Settings() diff --git a/backend/main.py b/backend/main.py index b342b8a..9edf59b 100644 --- a/backend/main.py +++ b/backend/main.py @@ -133,10 +133,7 @@ def on_startup(): db.commit() # Seed system_config from env if not already set if not db.query(SystemConfig).filter_by(key="allow_registration").first(): - db.add(SystemConfig( - key="allow_registration", - value="true" if settings.allow_registration else "false", - )) + db.add(SystemConfig(key="allow_registration", value="true")) db.commit() # Apply user's saved concurrent download limit on startup diff --git a/docker-compose.yml b/docker-compose.yml index 22224e8..b8f6368 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,6 @@ services: DOWNLOAD_PATH: /downloads SECRET_KEY: ${SECRET_KEY:-changeme} JELLYFIN_URL: ${JELLYFIN_URL:-} - ALLOW_REGISTRATION: ${ALLOW_REGISTRATION:-true} ports: - "8000:8000"