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;
}
}