CXKPI nginx config

2021-03-09  本文已影响0人  SilasChen

cxkpi need to use nginx to set two domain.

one is for cxtool user entrance.

cxkpi.codata.lenovo.com

server {

listen 80;

server_name cxkpi.codata.lenovo.com;

location /cxkpimgr {

    alias  /home/admin12/code/cxkpi-manager/dist/;

    index  index.html;

    try_files $uri $uri/ /cxkpimgr/index.html;

  }

}

server {

listen 80;

server_name api.cxkpi.lenovo.com;

location / {

proxy_pass http://cxkpi.earth.xpaas.lenovo.com;

}

}

上一篇 下一篇

猜你喜欢

热点阅读