fix: 更新 gateway 管理员白名单并修复 fix_orphan_notes 脚本
- confs/configs/gateway.ini: 管理员账号从 qing@qsont.me;shufeng@qsont.me 更新为 1776177662@qq.com;277665039@qq.com - db/fix_orphan_notes.py: 修复 _sys.path 笔误为 sys.path,补充文件末尾换行
This commit is contained in:
1 parent
63b5243faf
commit
5a8ac61502
2 files changed
+2
-2
No files matched your search
@@ -23,7 +23,7 @@ max_refresh = 10
|
|||||||
# 管理员账号白名单(分号分隔)。登录时命中即在 Token payload 写入 is_admin=true,
|
# 管理员账号白名单(分号分隔)。登录时命中即在 Token payload 写入 is_admin=true,
|
||||||
# 下游服务(dnfs 等)凭该字段豁免所有权校验,无需各自维护名单。
|
# 下游服务(dnfs 等)凭该字段豁免所有权校验,无需各自维护名单。
|
||||||
# 修改后需重启 gateway 生效;旧 Token 无此字段,按非管理员处理。
|
# 修改后需重启 gateway 生效;旧 Token 无此字段,按非管理员处理。
|
||||||
users = qing@qsont.me;shufeng@qsont.me
|
users = 1776177662@qq.com;277665039@qq.com;
|
||||||
|
|
||||||
[CORS]
|
[CORS]
|
||||||
# 允许跨域的 Origin 白名单(分号分隔)
|
# 允许跨域的 Origin 白名单(分号分隔)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import sys
|
|||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
_sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||||
from pymsg import RpcClient # noqa: E402
|
from pymsg import RpcClient # noqa: E402
|
||||||
|
|
||||||
DB_HOST = os.environ.get('DB_HOST', '127.0.0.1')
|
DB_HOST = os.environ.get('DB_HOST', '127.0.0.1')
|
||||||
|
|||||||
Reference in new issue
Block a user