71 lines
2.5 KiB
JSON
71 lines
2.5 KiB
JSON
{
|
|
"password_key": "RagServer2026Key",
|
|
"databases": {
|
|
"rag": {
|
|
"driver": "mysql",
|
|
"kwargs": {
|
|
"host": "db",
|
|
"port": 3306,
|
|
"user": "test",
|
|
"password": "cybEz86hASifn+iwFHirOQ==",
|
|
"db": "rag",
|
|
"charset": "utf8mb4"
|
|
}
|
|
}
|
|
},
|
|
"SAGE_RBAC_DB": "rag",
|
|
"logger": {
|
|
"name": "ragserver",
|
|
"levelname": "info",
|
|
"logfile": "$[workdir]$/logs/ragserver.log"
|
|
},
|
|
"filesroot": "$[workdir]$/files",
|
|
"website": {
|
|
"paths": [
|
|
["$[workdir]$/wwwroot", ""]
|
|
],
|
|
"client_max_size": 524288000,
|
|
"host": "0.0.0.0",
|
|
"port": 9181,
|
|
"coding": "utf-8",
|
|
"indexes": [
|
|
"index.ui",
|
|
"index.html"
|
|
],
|
|
"session_max_time":3000,
|
|
"session_issue_time":2500,
|
|
"session_redis":{
|
|
"url":"redis://127.0.0.1:6379"
|
|
},
|
|
"processors": [
|
|
[".tmpl", "tmpl"],
|
|
[".wss", "ws"],
|
|
[".ws", "ws"],
|
|
[".ui", "bui"],
|
|
[".dspy", "dspy"],
|
|
[".md", "md"]
|
|
],
|
|
"startswiths": [
|
|
{"leading": "/idfile", "registerfunction": "idfile"},
|
|
{"leading": "/api/status", "registerfunction": "status"},
|
|
{"leading": "/api/kb/list", "registerfunction": "kb_list"},
|
|
{"leading": "/api/engines", "registerfunction": "engines"},
|
|
{"leading": "/api/search", "registerfunction": "search"},
|
|
{"leading": "/api/doc/upload", "registerfunction": "doc_upload"},
|
|
{"leading": "/api/doc/delete", "registerfunction": "doc_delete"},
|
|
{"leading": "/api/dir/create", "registerfunction": "dir_create"},
|
|
{"leading": "/api/dir/delete", "registerfunction": "dir_delete"},
|
|
{"leading": "/api/dir/list", "registerfunction": "dir_list"},
|
|
{"leading": "/api/tag/create", "registerfunction": "tag_create"},
|
|
{"leading": "/api/tag/list", "registerfunction": "tag_list"},
|
|
{"leading": "/api/tag/delete", "registerfunction": "tag_delete"},
|
|
{"leading": "/api/tag/assign", "registerfunction": "tag_assign"},
|
|
{"leading": "/api/tag/unassign", "registerfunction": "tag_unassign"},
|
|
{"leading": "/api/tag/media_tags", "registerfunction": "tag_media_tags"},
|
|
{"leading": "/api/tag/search", "registerfunction": "tag_search"},
|
|
{"leading": "/api/tag/sync", "registerfunction": "tag_sync"}
|
|
]
|
|
},
|
|
"hot_reload": true
|
|
}
|