01f04c44d9
Reemplaza los bind mounts individuales de cantina.db y .spotify_cache por un único directorio ./data/ montado en /app/data. El entrypoint crea el directorio y los archivos vacíos si no existen, evitando que Docker los cree como directorios al hacer un despliegue limpio. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
703 B
Python
27 lines
703 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
SPOTIFY_CLIENT_ID: str
|
|
SPOTIFY_CLIENT_SECRET: str
|
|
SPOTIFY_REDIRECT_URI: str = "http://127.0.0.1:8000/auth/callback"
|
|
ADMIN_USERNAME: str = "admin"
|
|
ADMIN_PASSWORD: str = "admin123"
|
|
SECRET_KEY: str = "cambia-esta-clave-secreta"
|
|
DATABASE_URL: str = "sqlite:///./data/cantina.db"
|
|
|
|
SPOTIFY_SCOPES: str = (
|
|
"user-read-playback-state "
|
|
"user-modify-playback-state "
|
|
"user-read-currently-playing "
|
|
"user-read-recently-played "
|
|
"playlist-read-private "
|
|
"playlist-read-collaborative"
|
|
)
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
|
|
|
|
settings = Settings()
|