Reverse Proxy (Nginx)
If you need to run CoreSight alongside other web applications, you can put it behind an Nginx reverse proxy.
Configuration Steps
- Change the
PORTin/opt/coresight/server/.envto a local port (e.g.,5174). - Configure Nginx to proxy both standard HTTP traffic and WebSockets:
nginx
server {
listen 443 ssl;
server_name coresight.example.com;
location / {
proxy_pass http://127.0.0.1:5174;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}