|
|
|
@ -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
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|