chore: 将 casbin.conf 加入 gitignore

This commit is contained in:
unclesam committed 2026-07-07 22:20:54 +08:00
1 parent 63c8f2980b
commit 2a22adb4bb
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -22,6 +22,7 @@ logs/
# 配置文件(含敏感信息,仅本地保留) # 配置文件(含敏感信息,仅本地保留)
configs/config.yaml configs/config.yaml
configs/casbin.conf
# Go # Go
vendor/ vendor/
@@ -16,4 +16,4 @@ e = some(where (p.eft == allow))
# Matchers # Matchers
[matchers] [matchers]
m = r.sub == "unclesam" || g(r.sub, p.sub) && keyMatch2(r.obj, p.obj) && regexMatch(r.act, p.act) m = r.sub == "your_admin_user" || g(r.sub, p.sub) && keyMatch2(r.obj, p.obj) && regexMatch(r.act, p.act)