From 4183bd942fdb5ab26819836e8c44ee067942813f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Thu, 24 Oct 2024 09:46:35 +0800 Subject: [PATCH] 'commit' --- 操作文档/7、DataEase.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/操作文档/7、DataEase.md b/操作文档/7、DataEase.md index e9e93412..713d52db 100644 --- a/操作文档/7、DataEase.md +++ b/操作文档/7、DataEase.md @@ -101,8 +101,28 @@ mkdir /root/nginx_logs docker run --name openresty -d -v /root/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf -v /root/nginx_logs:/var/log/nginx -p 80:80 openresty/openresty:1.25.3.1-5-alpine-fat ``` + + +#### 如果不想按/进行发布,而是想采用$/dataease/$进行发布的话 + +> 参考:[DataEase v2 设置动态访问路径,使用 Nginx 路径代理 - FIT2CLOUD 知识库](https://kb.fit2cloud.com/?p=57a47d64-4eda-4ae8-a0b0-4329e57b13ff) + +**步骤1** + +```shell +vi /opt/dataease2.0/conf/application.yml ``` -http://10.10.14.203/ + +```yaml +server: + servlet: + context-path: /dataease +``` + +**步骤2** + +```shell +echo 'DE_CONTEXT_PATH=/dataease' >> /opt/dataease2.0/.env ```