Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

run on same port as nagios #37

Closed
grkblood13 opened this issue Jan 20, 2016 · 1 comment
Closed

run on same port as nagios #37

grkblood13 opened this issue Jan 20, 2016 · 1 comment
Labels

Comments

@grkblood13
Copy link

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.

@dmytro
Copy link
Owner

dmytro commented Jan 21, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants