updated and cleaned

This commit is contained in:
2025-03-24 13:36:14 +03:00
parent 713730420c
commit 22876d250d
26 changed files with 161 additions and 98 deletions

View File

@@ -1,5 +1,6 @@
import datetime
class DefaultApiConfig:
app: str
host: str
@@ -18,11 +19,12 @@ class DefaultApiConfig:
}
class ApiConfigs:
"""Base class for all configurations."""
SECRET: str = "59f871a2d2194e96adb36b279d2cc21059f871a2d2194e96adb36b279d2cc21059f871a2d2194e96adb36b279d2cc210s"
SECRET: str = (
"59f871a2d2194e96adb36b279d2cc21059f871a2d2194e96adb36b279d2cc21059f871a2d2194e96adb36b279d2cc210s"
)
ACCESS_TIME: int = 432000
REFRESH_TIME: int = 864000
DEFAULT_SIZE: int = 10

View File

@@ -1,5 +1,3 @@
class HostConfig:
MAIN_HOST: str = "10.10.2.36" # http://10.10.2.36
@@ -10,7 +8,9 @@ class MainConfig:
APP_NAME: str = "evyos-web-api-gateway"
TITLE: str = "WAG API Web Api Gateway"
DESCRIPTION: str = "This api is serves as web api gateway only to evyos web services."
DESCRIPTION: str = (
"This api is serves as web api gateway only to evyos web services."
)
APP_URL: str = "https://www.wag.eys.gen.tr"
DATETIME_FORMAT: str = "YYYY-MM-DD HH:mm:ss ZZ"

View File

@@ -7,4 +7,6 @@ class MongoConfig:
DATABASE_NAME: str = "mongo_database"
HOST: str = HostConfig.MAIN_HOST
PORT: str = 11777
URL: str = f"mongodb://{USER_NAME}:{PASSWORD}@{HOST}:{PORT}/{DATABASE_NAME}?retryWrites=true&w=majority"
URL: str = (
f"mongodb://{USER_NAME}:{PASSWORD}@{HOST}:{PORT}/{DATABASE_NAME}?retryWrites=true&w=majority"
)