2021-12-16 19:40:59 +08:00
|
|
|
|
import os.path
|
|
|
|
|
|
|
|
|
|
from common.conf import load_yaml
|
|
|
|
|
|
|
|
|
|
# 项目目录
|
|
|
|
|
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
|
|
|
|
|
|
CONFIG_FILE = os.path.join(os.path.dirname(BASE_DIR), "conf.yaml")
|
|
|
|
|
CONFIG: dict = load_yaml(CONFIG_FILE, raise_exception=True, default={})
|
2021-12-02 16:54:48 +08:00
|
|
|
|
|
2021-12-06 15:30:21 +08:00
|
|
|
|
VERSION = "v1"
|
|
|
|
|
INSTANCE = "9e5da0b3-565f-11ec-b095-18c04d9eb245"
|
|
|
|
|
|
2021-12-21 15:52:53 +08:00
|
|
|
|
# 请注意修改,涉及加密
|
|
|
|
|
SECRET_KEY = "_%77bE8b62Z!11eCbdF4/18C04@d9b24"
|
|
|
|
|
|
2021-12-02 16:54:48 +08:00
|
|
|
|
# API static token 允许请求的静态token
|
|
|
|
|
X_TOKEN_SET = (
|
|
|
|
|
"51ab21fa323a11eca1af000c2993d583", #
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# 跨服spid集合
|
|
|
|
|
CROSS_SPID_SET = (
|
|
|
|
|
"000", "111", "222", "333", "444"
|
|
|
|
|
)
|
2021-12-15 16:44:51 +08:00
|
|
|
|
|
|
|
|
|
# session 从请求头中获取,ops1 中的命名如:
|
|
|
|
|
# jiggry:1:chenzuoqing:089dbbae5bec11ec97c3525400e547a1
|
|
|
|
|
SESSION_PREFIX = "jiggry:1"
|