1 Star 0 Fork 0

f2e-server / f2e-middle-auth

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.f2econfig.jira.js 1.88 KB
一键复制 编辑 原始数据 按行查看 历史
shiyangyang 提交于 2023-02-02 10:19 . 首次同步提交版本
const { argv } = process
const build = argv[argv.length - 1] === 'build'
const dev = argv.includes('-O')
const lib = require('./lib')
const testMongo = [
conf => lib(conf, {
store: new lib.JiraMongoStore({
url: ' mongodb://127.0.0.1:27017/',
dbName: 'authority_test',
jiraRoot: 'http://atlassian.yourcompany.com/jira/',
apiRoot: 'apiRoot'
},
// {
// authorities: {
// tablename: 'authorities',
// columns: {
// id: '_id',
// name: 'name'
// }
// },
// roles: {
// tablename: 'roles',
// columns: {
// id: '_id',
// name: 'name',
// is_admin: 'isAdmin',
// isSys: 'isSys',
// authorities: 'authorities'
// }
// },
// role_auth_rel: {
// tablename: 'role_auth_rel',
// columns: {
// id: '_id',
// role_id: 'role_id',
// auth_id: 'auth_id',
// level: 'level'
// }
// },
// users: {
// tablename: 'users',
// columns: {
// id: '_id',
// name: 'name',
// nickname: 'nickname',
// role_id: 'roleId',
// password: 'password',
// lock_ips: 'lock_ips'
// }
// }
// }
),
dev
})
]
module.exports = {
livereload: !build,
gzip: true,
build,
buildFilter: (p) => !p || /src/.test(p),
middlewares: [
dev && { middleware: 'esbuild', test: /^\/?lib/ },
].concat(testMongo)
}
NodeJS
1
https://gitee.com/f2e-server/f2e-middle-auth.git
git@gitee.com:f2e-server/f2e-middle-auth.git
f2e-server
f2e-middle-auth
f2e-middle-auth
master

搜索帮助