refactor: 将非Docker环境下的服务主机地址从host.docker.internal改为localhost,移除前台文件管理菜单”
This commit is contained in:
parent
5198d99e75
commit
00d48b8df8
|
@ -29,11 +29,11 @@ if is_running_in_docker():
|
|||
ES_HOST = "es01"
|
||||
ES_PORT = 9200
|
||||
else:
|
||||
MYSQL_HOST = "host.docker.internal"
|
||||
MYSQL_HOST = "localhost"
|
||||
MYSQL_PORT = int(os.getenv("MYSQL_PORT", "5455"))
|
||||
MINIO_HOST = "host.docker.internal"
|
||||
MINIO_HOST = "localhost"
|
||||
MINIO_PORT = int(os.getenv("MINIO_PORT", "9000"))
|
||||
ES_HOST = "host.docker.internal"
|
||||
ES_HOST = "localhost"
|
||||
ES_PORT = int(os.getenv("ES_PORT", "9200"))
|
||||
|
||||
# 数据库连接配置
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import { ReactComponent as FileIcon } from '@/assets/svg/file-management.svg';
|
||||
|
||||
import { ReactComponent as KnowledgeBaseIcon } from '@/assets/svg/knowledge-base.svg';
|
||||
import { ReactComponent as WriteIcon } from '@/assets/svg/write.svg';
|
||||
import { useTranslate } from '@/hooks/common-hooks';
|
||||
|
@ -31,7 +29,6 @@ const RagHeader = () => {
|
|||
{ path: '/knowledge', name: t('knowledgeBase'), icon: KnowledgeBaseIcon },
|
||||
{ path: '/write', name: t('write'), icon: WriteIcon },
|
||||
{ path: '/search', name: t('search'), icon: SearchOutlined },
|
||||
{ path: '/file', name: t('fileManager'), icon: FileIcon },
|
||||
],
|
||||
[t],
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue