129 字
1 分钟
相关配置 | goFrame配置文件的参数
goFrame配置文件的参数
项目config
# https://goframe.org/docs/web/server-config-file-templateserver: address: ":8000" openapiPath: "/api.json" swaggerPath: "/swagger"
# https://goframe.org/docs/core/glog-configlogger: level: "all" stdout: true path: "resource/log" rotate: "daily" rotateBackupLimit: 7 rotateBackupExpire: "7d" rotateBackupCompress: 9
# https://goframe.org/docs/core/gdb-config-filedatabase: logger: - path: "resource/log/sql" level: "all" stdout: true default: link: "pgsql:postgres:postgres@tcp(127.0.0.1:5432)/go_admin" debug: truegToken: # 缓存模式 1 gcache 2 gredis 3 gfile cacheMode: 2 # 是否支持多端登录 multiLogin: trueredis: default: address: 127.0.0.1:6379 db: 0 pass: 123456 cache: address: 127.0.0.1:6379 db: 1 pass: 123456 idleTimeout: 600rbac config
[request_definition]r = sub, obj, act
[policy_definition]p = sub, obj, act
[role_definition]g = _, _
[policy_effect]e = some(where (p.eft == allow))
[matchers]m = g(r.sub, p.sub) && keyMatch(r.obj, p.obj) && regexMatch(r.act, p.act) 相关配置 | goFrame配置文件的参数
https://fuwari.wisansiiz.top/posts/goframe-config/