fix: 更新 gateway 管理员白名单并修复 fix_orphan_notes 脚本 #21
No files matched your search
@@ -23,7 +23,7 @@ max_refresh = 10
|
||||
# 管理员账号白名单(分号分隔)。登录时命中即在 Token payload 写入 is_admin=true,
|
||||
# 下游服务(dnfs 等)凭该字段豁免所有权校验,无需各自维护名单。
|
||||
# 修改后需重启 gateway 生效;旧 Token 无此字段,按非管理员处理。
|
||||
users = qing@qsont.me;shufeng@qsont.me
|
||||
users = 1776177662@qq.com;277665039@qq.com;
|
||||
|
||||
[CORS]
|
||||
# 允许跨域的 Origin 白名单(分号分隔)
|
||||
|
||||
@@ -22,7 +22,7 @@ import sys
|
||||
|
||||
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
|
||||
|
||||
DB_HOST = os.environ.get('DB_HOST', '127.0.0.1')
|
||||
@@ -98,4 +98,4 @@ def main():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
main()
|
||||
Reference in new issue
Block a user