Skip to content

Reverse Proxy (Nginx)

If you need to run CoreSight alongside other web applications, you can put it behind an Nginx reverse proxy.

Configuration Steps

  1. Change the PORT in /opt/coresight/server/.env to a local port (e.g., 5174).
  2. 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;
    }
}

CoreSight Documentation