-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run it behind an nginx proxy. #59
Comments
You have to tweak both nginx and amon for this to work. Amon has a base_url variable, which is constructed from the port/host found in amon.conf, so what you need to do is - change those values to match the nginx configuration. If your nginx server runs on 127.0.0.1 (no port ), remove the port value in /etc/amon.conf and in /etc/init.d/amon - find the line which says int(settings['port']) and change it to the 2464( or something else, if its more convenient ) |
Thank you for such a quick response For future users, I had to do the following:
"web_app": {
"host": "log.awesome.com", //nginx host
"port": "80" //nginx port
},
// remove the comments from above lines
#change line #33 to the following, so that the amon webapp doesn't try to listen on port 80
application.listen(int(2464)) @martinrusev Thank you for creating such an awesome app :) |
For reference, it works slightly differently if you want to use SSL. Here's my nginx host (using 10.10.10.10 as an example external IP): upstream amon_server { server {
} And the corresponding /etc/amon( | plus).conf: And finally, /etc/init.d/amon( | plus) change "application.listen(int(settings.WEB_APP['port']))" to "application.listen(int(2464))". |
Thank you, I will add that info to the official documentation |
I am trying to run it behind an nginx proxy. But, the links have a "http://127....:2464/.." I understand that it's picking up these from the
/etc/amon.conf
. How can I tell the amon web process to use the nginx proxy's host and port?The text was updated successfully, but these errors were encountered: