# -*- coding: utf-8 -*-

import os
from distutils.util import strtobool


class Config:
    DEBUG = bool(strtobool(os.getenv('DEBUG', "False")))
    DATABASE_URI = os.getenv('DATABASE_URI', '127.0.0.1:27017')
    WORKERS = int(os.getenv('WORKERS', 2))
    LOGO = os.getenv('LOGO', None)
    HOST = os.getenv('HOST', '127.0.0.1')
    PORT = int(os.getenv('PORT', 8000))
    SECRET = os.getenv('SECRET', 'secret')
    LOGIN_MIN_LENGTH = int(os.getenv('LOGIN_MIN_LENGTH', 1))
    LOGIN_MAX_LENGTH = int(os.getenv('LOGIN_MAX_LENGTH', 32))

[(9, 'os.getenv', 'os.getenv', False, 'import os\n'), (11, 'os.getenv', 'os.getenv', False, 'import os\n'), (12, 'os.getenv', 'os.getenv', False, 'import os\n'), (14, 'os.getenv', 'os.getenv', False, 'import os\n'), (10, 'os.getenv', 'os.getenv', False, 'import os\n'), (13, 'os.getenv', 'os.getenv', False, 'import os\n'), (15, 'os.getenv', 'os.getenv', False, 'import os\n'), (16, 'os.getenv', 'os.getenv', False, 'import os\n'), (8, 'os.getenv', 'os.getenv', False, 'import os\n')]