Commit c5600d35 authored by deepdey's avatar deepdey

chore: update app config

parent bca40558
...@@ -3,8 +3,8 @@ import logging ...@@ -3,8 +3,8 @@ import logging
import os import os
from datetime import date from datetime import date
SERVER_HOST: str = os.environ.get('SERVER_HOST', '127.0.0.1') SERVER_HOST: str = os.environ.get('SERVER_HOST', '0.0.0.0')
SERVER_PORT: str = os.environ.get('SERVER_PORT', '5000') SERVER_PORT: str = os.environ.get('SERVER_PORT', '5011')
POSTGRES: dict = { POSTGRES: dict = {
'user': os.environ.get('POSTGRES_USER', 'postgres'), 'user': os.environ.get('POSTGRES_USER', 'postgres'),
...@@ -23,21 +23,9 @@ REDIS_PORT = os.environ.get('REDIS_PORT', 6379) ...@@ -23,21 +23,9 @@ REDIS_PORT = os.environ.get('REDIS_PORT', 6379)
REDIS_DATABASE = os.environ.get('REDIS_DATABASE', 0) REDIS_DATABASE = os.environ.get('REDIS_DATABASE', 0)
JWT_SECRET_KEY: str = os.environ.get(
'JWT_SECRET_KEY', 'f3bca1544d308741c9240f3b6ced1067513ce1351c9fd3971fdafbfe68fffc82'
)
LOGGER_PATH: str = os.environ.get( LOGGER_PATH: str = os.environ.get(
'LOGGER_PATH', f'{os.getcwd()}{os.sep}logs{os.sep}') 'LOGGER_PATH', f'{os.getcwd()}{os.sep}logs{os.sep}')
# Sensetive fields to hide in audit log
SENSITIVE_FIELDS: list = os.environ.get(
'SENSITIVE_FIELDS',
['password', 'confirm_password']
)
def get_logger(__name__: str) -> logging.Logger: def get_logger(__name__: str) -> logging.Logger:
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO) logger.setLevel(logging.INFO)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment