The pulsar-manager is tested with Chrome browser.
Add proxyTable. For localhost debug
proxyTable: { '/admin/*': { target: 'http://localhost:7750/', changeOrigin: true }, '/pulsar-manager/*': { target: 'http://localhost:7750/', changeOrigin: true }, '/lookup/*': { target: 'http://localhost:7750/', changeOrigin: true } },
module.exports = {
NODE_ENV: '"production"',
ENV_CONFIG: '"prod"'
}
localhost with the IP address of the backend service. listen 9527;
server_name 0.0.0.0;
location / {
root /usr/share/nginx/html/dist;
index index.html index.htm;
}
location /admin {
proxy_pass http://localhost:7750;
}
location /pulsar-manager {
proxy_pass http://localhost:7750;
}
location /lookup {
proxy_pass http://localhost:7750;
}
cd front-end npm run build:prod
Copy file of dist to Nginx server /usr/share/nginx/html/dist
Open a browser and visit the following address: