from sqlalchemy.pool import QueuePool

data_sources = {
    "default": {
        "type": "sqlalchemy",
        "sqlalchemy.url": "postgresql+psycopg2://postgres@/converterdb",
        # "sqlalchemy.echo": True,
        "sqlalchemy.pool_size": 2,
        "sqlalchemy.pool_recycle": 3600,
        "sqlalchemy.poolclass": QueuePool,
        "sqlalchemy.pool_use_lifo": True,
        "sqlalchemy.max_overflow": 10,
        "sqlalchemy.pool_timeout": 1200,
    },
}
cache_settings = {
    "default": {
        "unix_socket_path": "/var/run/redis/redis-server.sock",
        "type": "redis",
        "host": "localhost",
        "db": 7
    }
}
PROPAGATE_EXCEPTIONS = True
UPLOAD_DIR = "/opt/converter/files/"
SMS_URL = "http://smsgate.carbonsoft.ru/?login=000-000-000-000-001&pass=empty&tel={phone}&text={text}"
AUTH_ENABLED = False
SECRET_KEY = 'top_mega_secret_key'
JSON_AS_ASCII = False
DISABLE_PERMISSIONS = True
