chore: add base config and package structure
This commit is contained in:
@@ -1,2 +1,16 @@
|
||||
import os
|
||||
|
||||
|
||||
class BaseConfig:
|
||||
JSON_AS_ASCII = False
|
||||
|
||||
|
||||
def load_config_from_env(environ=None):
|
||||
source = environ or os.environ
|
||||
return {
|
||||
"CHIS_BASE_URL": source.get("CHIS_BASE_URL", ""),
|
||||
"CHIS_PUBLIC_KEY": source.get("CHIS_PUBLIC_KEY", ""),
|
||||
"REDIS_URL": source.get("REDIS_URL", "redis://localhost:6379/0"),
|
||||
"LOG_DIR": source.get("LOG_DIR", "logs"),
|
||||
"ARCHIVE_DIR": source.get("ARCHIVE_DIR", "archives"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user