from datetime import datetime
class ConfigClass(object):
    sec = "[M/K)0?7y%+m?/1jDr+j.rEGAS82iTWDwb[68&T_1[U0jV4h5jyhA01BrKXP/64TK7MPdnAJ8Dujp5-!JvYwpkjGS.a,*1iwWbu&Y[GxnwJ*Z);H9P"
    SECRET_KEY = sec
    JWT_SECRET_KEY = sec
    TIMEZONE = "Africa/Nairobi"
    UPLOAD_FOLDER = 'static/files'
    PROJECT_NAME = 'Admin'
    ALLOWED_EXTENSIONS = {'txt', 'pdf', 'docx', 'png', 'webp', 'jpg', 'jpeg', 'gif'}
    
    # SQLALCHEMY_DATABASE_URI = "mysql+pymysql://carsoko_admin_user:xaSRhwP5XigJd5K[@localhost/carsoko_admin_new"
    
    SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:@localhost/carsoko_net_new"
    # SQLALCHEMY_BINDS = {
    #     "oldDB": {
    #         "url": "mysql+pymysql://root:@localhost/carsoko_net_old",
    #         "pool_recycle": 300,
    #     }}
   
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    # SQLALCHEMY_TRACK_MODIFICATIONS = True
    # SQLALCHEMY_POOL_SIZE = 28
    # SQLALCHEMY_MAX_OVERFLOW = 10000
    SQLALCHEMY_ENGINE_OPTIONS = {"pool_recycle": 280, "pool_timeout": 10, "pool_pre_ping": True}
    
    SESSION_TYPE = 'filesystem'
    
    PORT = 4565
    SECURITY_PASSWORD_SALT = sec
    SECURITY_REGISTERABLE = True
    SECURITY_SEND_REGISTER_EMAIL = False
    SEMATIME_ACCOUNT_ID = 'b29b85ad7ee64acb9aae801a1303cba4'
    SEMATIME_AUTH_TOKEN = 'baba91352eed42b2a1a1d3d7edb4a922'
    SEMATIME_API_URL = "https://apis.sematime.com/v1/{AccountID}/messages/single.url?text={SMS}&recipients={Recepient}&AuthToken={AuthToken}"
    
    MAIL_SERVER ='mail.carsoko.net'
    MAIL_PORT = 465
    MAIL_USE_TLS = False
    MAIL_USE_SSL = True
    MAIL_DEBUG = False
    MAIL_USERNAME = 'it@carsoko.net'
    MAIL_PASSWORD = 'UMlxXMS(PtFE'
    MAIL_DEFAULT_SENDER = 'it@carsoko.net'
    MAIL_MAX_EMAILS = None
    MAIL_ASCII_ATTACHMENTS = False
    
    CACHE_TYPE= "redis"
    CACHE_REDIS_HOST="redis"
    CACHE_REDIS_PORT=6379
    CACHE_REDIS_DB=0
    CACHE_REDIS_URL="redis://redis:6379/0"
    CACHE_DEFAULT_TIMEOUT=500
    
    DEVELOPERS = "Greenbear Technologies"
    PROJECT_LOCATION = "Nairobi, Kenya"
    PROJECT_EMAIL = "info@rentnasi.com"
    PROJECT_PHONE = "+254702109810"
    PROJECT_URL = "https://rentnasi.com"
    
    YEAR = datetime.now().year
    DEVELOPER_URL = "https://gbt.co.ke"
    
