fix: rbac wwwroot symlink + login paths in RBAC and build.sh
This commit is contained in:
parent
895573aaad
commit
39626a759c
2
build.sh
2
build.sh
@ -68,6 +68,8 @@ fi
|
|||||||
for m in rag-pipeline; do
|
for m in rag-pipeline; do
|
||||||
[ -d pkgs/$m/wwwroot ] && ln -sf ../pkgs/$m/wwwroot wwwroot/$m 2>/dev/null || true
|
[ -d pkgs/$m/wwwroot ] && ln -sf ../pkgs/$m/wwwroot wwwroot/$m 2>/dev/null || true
|
||||||
done
|
done
|
||||||
|
# Always symlink rbac wwwroot for login pages
|
||||||
|
ln -sf ../pkgs/rbac/wwwroot wwwroot/rbac 2>/dev/null || true
|
||||||
|
|
||||||
# Fix created_by in CRUD dspy files
|
# Fix created_by in CRUD dspy files
|
||||||
if [ -d wwwroot/knowledge_bases_list ]; then
|
if [ -d wwwroot/knowledge_bases_list ]; then
|
||||||
|
|||||||
@ -10,7 +10,10 @@ from appPublic.jsonConfig import getConfig
|
|||||||
config = getConfig('.')
|
config = getConfig('.')
|
||||||
DBPools(config.databases)
|
DBPools(config.databases)
|
||||||
|
|
||||||
PUBLIC = ['/api/status', '/api/engines', '/api/kb/list', '/', '/index.ui', '/bricks/**']
|
PUBLIC = ['/api/status', '/api/engines', '/api/kb/list', '/', '/index.ui', '/bricks/**',
|
||||||
|
'/rbac/user/login.ui', '/rbac/user/register.ui',
|
||||||
|
'/rbac/user/login.dspy', '/rbac/user/register.dspy', '/rbac/user/logout.dspy',
|
||||||
|
'/rbac/**']
|
||||||
LOGINED = ['/api/search', '/api/ingest',
|
LOGINED = ['/api/search', '/api/ingest',
|
||||||
'/knowledge_bases_list/', '/documents_list/',
|
'/knowledge_bases_list/', '/documents_list/',
|
||||||
'/engine_configs_list/', '/subscriptions_list/']
|
'/engine_configs_list/', '/subscriptions_list/']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user