from __init__ import app   
from datetime import datetime
from data.data import *

app.config["PROJECT_NAME"] = "Apple Energy Limited"
app.config["PROJECT_NUMBER"] = "+254724531660"
app.config["PROJECT_EMAIL"] = "info@appleenergy.co.ke"
app.config["PROJECT_AUTHOR"] = "Greenbear Technologies Limited"
app.config["PROJECT_LOCATION"] = "Towfiq Mall Eastleigh, Nairobi, Kenya"
app.config["PROJECT_AUTHOR_URL"] = "https://gbt.co.ke"
app.config["PROJECT_DEVELOPER"] = "Mutai Tony"
app.config["VERSION"] = "1.0"
app.config["YEAR"] = datetime.now().strftime('%Y')
app.config["SECRET_KEY"] = "vscdc7823ahvbqefcaebvbqrfvavaafv239<?/./evccsicfvvk-fv8fy8943fdh348gc7ercgcgerukfu3f_efvfiurfh2374ry0349r83493g0234tcne834014hr234r13r91347r43134r"
app.config["TIMEZONE"] = "Africa/Nairobi"
# app.config["HOST"] = "localhost.localdomain:5050"
app.config["PORT"] = 5077
app.config["SQLALCHEMY_DATABASE_URI"] = "mysql+pymysql://root:@localhost/oilgen"
# app.config["SQLALCHEMY_DATABASE_URI"] = "mysql+pymysql://oilgen_admin:}BsrHFYOfXjd@localhost/oilgen_db"
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
app.config["SQLALCHEMY_POOL_SIZE"] = 50
app.config["SQLALCHEMY_MAX_OVERFLOW"] = 50
app.config["SESSION_TYPE"] = "sqlalchemy"
app.config["MAX_CONTENT_LENGTH"] = 10485760
app.config["ALLOWED_EXTENSIONS"] = {'txt','pdf','png','jpg','jpeg','gif'}
app.config["UPLOAD_FOLDER"] = "static/uploads"
app.config['SERVICES'] = data

app.config['RECAPTCHA_ENABLED'] = True
app.config['RECAPTCHA_SITE_KEY'] = "6Ldca_ApAAAAAHwUpnN1p8fvZBaUnRSfBYoE5U9f"
app.config['RECAPTCHA_SECTRET_KEY'] = "6Ldca_ApAAAAAOfUPczrJoB-cBZqs6P42bdpNJM7"

app.config['MAIL_SERVER'] ='mail.appleenergy.co.ke'
app.config['MAIL_PORT'] = 465
app.config['MAIL_USE_TLS'] = False
app.config['MAIL_USE_SSL'] = True
app.config['MAIL_DEBUG'] = False
app.config['MAIL_USERNAME'] = 'website@appleenergy.co.ke'
app.config['MAIL_PASSWORD'] = 'jXS7ageI4f$_'
app.config['MAIL_DEFAULT_SENDER'] = 'website@appleenergy.co.ke'
app.config['MAIL_MAX_EMAILS'] = None
app.config['MAIL_ASCII_ATTACHMENTS'] = False
