configs from env updated
This commit is contained in:
@@ -1,12 +1,32 @@
|
||||
import os
|
||||
|
||||
from ApiLayers.AllConfigs import HostConfig
|
||||
|
||||
|
||||
class Config:
|
||||
|
||||
MAILBOX: str = os.getenv('MAILBOX', "bilgilendirme@ileti.isbank.com.tr")
|
||||
MAIN_MAIL: str = os.getenv('MAIN_MAIL', "karatay.berkay@gmail.com")
|
||||
INFO_MAIL: str = os.getenv('INFO_MAIL', "mehmet.karatay@hotmail.com")
|
||||
EMAIL_HOST: str = os.getenv('EMAIL_HOST', "10.10.2.34")
|
||||
EMAIL_SENDER_USERNAME: str = os.getenv('EMAIL_SENDER_USERNAME', "karatay@mehmetkaratay.com.tr")
|
||||
EMAIL_USERNAME: str = os.getenv('EMAIL_USERNAME', "isbank@mehmetkaratay.com.tr")
|
||||
EMAIL_PASSWORD: str = os.getenv('EMAIL_PASSWORD', "system")
|
||||
AUTHORIZE_IBAN: str = os.getenv('AUTHORIZE_IBAN', "4245-0093333")
|
||||
SERVICE_TIMING: int = int(os.getenv('SERVICE_TIMING', 900))
|
||||
EMAIL_PORT: int = int(os.getenv('EMAIL_PORT', 993))
|
||||
EMAIL_SEND_PORT: int = int(os.getenv('EMAIL_SEND_PORT', 587))
|
||||
EMAIL_SLEEP: int = int(os.getenv('EMAIL_SLEEP', 60))
|
||||
EMAIL_SEND: bool = bool(os.getenv('EMAIL_SEND', False))
|
||||
|
||||
|
||||
class EmailConfig:
|
||||
|
||||
EMAIL_HOST: str = HostConfig.EMAIL_HOST
|
||||
EMAIL_USERNAME: str = "karatay@mehmetkaratay.com.tr"
|
||||
EMAIL_PASSWORD: str = "system"
|
||||
EMAIL_PORT: int = 587
|
||||
EMAIL_SEND: bool = False
|
||||
EMAIL_USERNAME: str = Config.EMAIL_SENDER_USERNAME
|
||||
EMAIL_PASSWORD: str = Config.EMAIL_PASSWORD
|
||||
EMAIL_PORT: int = Config.EMAIL_SEND_PORT
|
||||
EMAIL_SEND: bool = Config.EMAIL_SEND
|
||||
|
||||
@classmethod
|
||||
def as_dict(cls):
|
||||
@@ -16,19 +36,3 @@ class EmailConfig:
|
||||
username=EmailConfig.EMAIL_USERNAME,
|
||||
password=EmailConfig.EMAIL_PASSWORD,
|
||||
)
|
||||
|
||||
|
||||
class Config:
|
||||
SERVICE_TIMING: int = 900 # 15 min
|
||||
MAILBOX: str = "bilgilendirme@ileti.isbank.com.tr"
|
||||
|
||||
MAIN_MAIL: str = "karatay.berkay@gmail.com"
|
||||
INFO_MAIL = "mehmet.karatay@hotmail.com"
|
||||
|
||||
EMAIL_HOST: str = "10.10.2.34"
|
||||
# EMAIL_USERNAME: str = "karatay@mehmetkaratay.com.tr"
|
||||
EMAIL_USERNAME: str = "isbank@mehmetkaratay.com.tr"
|
||||
EMAIL_PORT: int = 993
|
||||
EMAIL_PASSWORD: str = "system"
|
||||
EMAIL_SLEEP: int = 60
|
||||
AUTHORIZE_IBAN: str = "4245-0093333"
|
||||
|
||||
Reference in New Issue
Block a user