30 lines
754 B
Python
30 lines
754 B
Python
|
|
|
|
storeHost = "10.10.2.36"
|
|
|
|
|
|
class WagDatabase:
|
|
SQL: str = "postgresql+psycopg2"
|
|
USERNAME: str = "berkay_wag_user"
|
|
PASSWORD: str = "berkay_wag_user_password"
|
|
HOST: str = storeHost
|
|
PORT: str = "5444"
|
|
DATABASE_NAME: str = "wag_database"
|
|
DATABASE_URL: str = f"{SQL}://{USERNAME}:{PASSWORD}@{HOST}:{PORT}/{DATABASE_NAME}"
|
|
|
|
|
|
class WagRedis:
|
|
REDIS_HOST = storeHost
|
|
REDIS_PASSWORD: str = "commercial_redis_password"
|
|
REDIS_PORT: int = 11222
|
|
REDIS_DB: int = 0
|
|
|
|
|
|
class MongoConfig:
|
|
password = "mongo_password"
|
|
username = "mongo_user"
|
|
database_name = "mongo_database"
|
|
host = storeHost
|
|
port = 11777
|
|
url = f"mongodb://{username}:{password}@{host}:{port}/{database_name}?retryWrites=true&w=majority"
|