Merge remote-tracking branch 'origin/main'

This commit is contained in:
liqiang-fit2cloud 2024-03-19 20:00:19 +08:00
commit 34d2b3d226
6 changed files with 7 additions and 7 deletions

View File

@ -17,7 +17,7 @@ MaxKB 是一款基于 LLM 大语言模型的知识库问答系统。
## 快速开始
```
docker run -d --name=maxkb -p 8000:8000 ghcr.io/1panel-dev/maxkb
docker run -d --name=maxkb -p 8080:8080 ghcr.io/1panel-dev/maxkb
```
也可以通过 [1Panel 应用商店](https://apps.fit2cloud.com/1panel) 快速部署 MaxKB + OllamaLlama 230 分钟内即可上线基于本地大模型的知识库问答系统。

View File

@ -29,7 +29,7 @@ RUN mv /opt/maxkb/app/model/* /opt/maxkb/model && \
rm -rf /var/lib/apt/lists/*
# 启动命令
VOLUME /opt/maxkb/conf
EXPOSE 8000
EXPOSE 8080
COPY installer/run-maxkb.sh /usr/bin/
RUN chmod 755 /usr/bin/run-maxkb.sh
ENTRYPOINT ["bash", "-c"]

View File

@ -44,7 +44,7 @@ def perform_db_migrate():
def start_services():
management.call_command('migrate')
management.call_command('runserver', "0.0.0.0:8000")
management.call_command('runserver', "0.0.0.0:8080")
if __name__ == '__main__':

View File

@ -7,7 +7,7 @@ readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
django = "4.1.10"
django = "4.1.13"
djangorestframework = "3.14.0"
drf-yasg = "1.21.7"
django-filter = "23.2"
@ -16,7 +16,7 @@ langchain = "^0.1.11"
psycopg2-binary = "2.9.7"
jieba = "^0.42.1"
diskcache = "^5.6.3"
pillow = "9.5.0"
pillow = "^10.2.0"
filetype = "^1.2.0"
chardet = "^5.2.0"
sentence-transformers = "^2.2.2"

View File

@ -13,7 +13,7 @@
"format": "prettier --write src/"
},
"dependencies": {
"axios": "^0.27.2",
"axios": "^0.28.0",
"element-plus": "^2.5.6",
"install": "^0.13.0",
"lodash": "^4.17.21",

View File

@ -11,7 +11,7 @@ export default defineConfig(({ mode }) => {
const ENV = loadEnv(mode, envDir)
const proxyConf: Record<string, string | ProxyOptions> = {}
proxyConf['/api'] = {
target: 'http://127.0.0.1:8000',
target: 'http://127.0.0.1:8080',
changeOrigin: true,
rewrite: (path) => path.replace(ENV.VITE_BASE_PATH, '/')
}