dmytro/nagira

run on same port as nagios

Closed this issue · 1 comments

Is there a way to run this on top of the nagios web server so I don't have to open up another port? That would be very useful.

You'd need to proxy and rewrite URL requests to the Nagira port. If you are using Nginx, then your configuration might look something like:

http {

   ...
        location /nagira {
                rewrite ^/nagira/(.*)  /$1 break;
                proxy_pass http://nagira-backend;
        }
   ...

        upstream nagira-backend {
                server localhost:4567;
        }
}

In this case you'd need to use nagira prefix for all your API requests.