# config.py import os from datetime import timedelta import socket class Config: SEND_FILE_MAX_AGE_DEFAULT = 0 SECRET_KEY = 'smeds_secret' SESSION_PERMANENT = True PERMANENT_SESSION_LIFETIME = timedelta(minutes=240) DB_SOURCE = os.getenv('db_source') if 'datascid-app03' in socket.gethostname().lower(): DB_SOURCE = 'dev' elif 'datasciu-app03' in socket.gethostname().lower(): DB_SOURCE = 'uat' USM_CLIENT_ID = 'eHBrNVEqQ1hoTUI2dzh6aGZtN0g' USM_CLIENT_SECRET = 'YzJQN3BiODhLK3kzJjJGbXRaV1M' USM_REDIRECT_URI = 'http://localhost:5003/auth/callback' USM_AUTH_URL = 'https://uat-auth-console.sonymusic.com/oauth2/openid/v1/authorize' USM_TOKEN_URL = 'https://uat-auth-console.sonymusic.com/oauth2/openid/v1/token' USM_APP_URL = 'http://localhost:5003' USM_SCOPE = 'openid' USM_STATE = 'test' JWT_SECRET = 'test' USM_LOGOUT_URL = 'http://localhost:5003/logout.html' if DB_SOURCE == 'uat': USM_CLIENT_ID = 'P0h5RDlHPUhnTmpnc0ZTPXhxZj8' USM_CLIENT_SECRET = 'NVBoMio3S1k3Kll6NzhSKjY3cGc' USM_REDIRECT_URI = 'https://tadas-uat.gdbdatascience.com/auth/callback' USM_APP_URL = 'https://tadas-uat.gdbdatascience.com' USM_LOGOUT_URL = 'https://tadas-uat.gdbdatascience.com/logout.html' if DB_SOURCE == 'dev': USM_REDIRECT_URI = 'https://tadas-dev.gdbdatascience.com/auth/callback' USM_APP_URL = 'https://tadas-dev.gdbdatascience.com' USM_LOGOUT_URL = 'https://tadas-dev.gdbdatascience.com/logout.html' USM_HOST = 'https://uat-auth-console.sonymusic.com'