35 lines
956 B
Python
35 lines
956 B
Python
|
|
|
|
class HostConfig:
|
|
|
|
MAIN_HOST = "10.10.2.36" # http://10.10.2.36 Database and other services
|
|
EMAIL_HOST = "10.10.2.34" # http://10.10.2.34 Email service
|
|
|
|
|
|
class MainConfig:
|
|
|
|
APP_NAME = "evyos-web-api-gateway"
|
|
TITLE = "WAG API Web Api Gateway"
|
|
DESCRIPTION = "This api is serves as web api gateway only to evyos web services."
|
|
APP_URL = "https://www.wag.eys.gen.tr"
|
|
|
|
DATETIME_FORMAT = "YYYY-MM-DD HH:mm:ss Z"
|
|
DATETIME_FORMAT_JS = "YYYY-MM-DD HH:mm:ss +0"
|
|
|
|
# Timezone Configuration
|
|
DEFAULT_TIMEZONE = "GMT+3" # Default timezone for the application
|
|
SYSTEM_TIMEZONE = "GMT+0" # System timezone (used for internal operations)
|
|
SUPPORTED_TIMEZONES = ["GMT+0", "GMT+3"] # List of supported timezones
|
|
|
|
|
|
class LanguageConfig:
|
|
|
|
SUPPORTED_LANGUAGES = ["en", "tr"]
|
|
DEFAULT_LANGUAGE = "tr"
|
|
|
|
|
|
class ValidationsConfig:
|
|
|
|
SUPPORTED_VALIDATIONS = ["header", "validation", "all"]
|
|
DEFAULT_VALIDATION = "all"
|