Initial commit with the basics
This commit is contained in:
18
app/config.py.default
Normal file
18
app/config.py.default
Normal file
@@ -0,0 +1,18 @@
|
||||
import secrets
|
||||
from pydantic import AnyHttpUrl, BaseSettings, EmailStr, HttpUrl, PostgresDsn, validator
|
||||
from typing import Any, Dict, List, Optional, Union
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
APP_NAME: str = "Aether API"
|
||||
ADMIN_EMAIL: EmailStr = 'example@example.com'
|
||||
|
||||
AETHER_DB_SERVER = 'xxx'
|
||||
AETHER_DB_PORT = '3306' # default = 3306
|
||||
AETHER_DB_NAME = 'xxx'
|
||||
AETHER_DB_USERNAME = 'xxx'
|
||||
AETHER_DB_PASSWORD = 'xxx'
|
||||
SQLALCHEMY_DATABASE_URI = 'mysql://'+AETHER_DB_USERNAME+':'+AETHER_DB_PASSWORD+'@'+AETHER_DB_SERVER+'/'+AETHER_DB_NAME
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user