How do I configure a proxy on the Nanitor server?
In many environments, there is no direct outbound access to the Nanitor server. In many corporate environments, such access goes through a Web Proxy.
Environment
The Nanitor Server runs CentOS and to set up a global server-wide proxy please add this to the /etc/environment file:
http_proxy="http://proxy.mycompany.com:8080/"
https_proxy="http://proxy.mycompany.com:8080/"
ftp_proxy="http://proxy.mycompany.com:8080/"
no_proxy="127.0.0.1,localhost,https://acme.nanitor.net"
Of course, replace proxy.mycompany.com with your organization's proxy settings, and acme.nanitor.net with your company Nanitor URL. Since that is hosted on your server, there should be no need to proxy it. The problem with proxying it is that when you host an independent collector on the nanitor server all communications between the collector and the server go through the proxy and could cause the collector to not be able to connect to the server and go off-line even though it is on the same box.
Verifying the configuration
Now to verify that the new configuration is working run the following command:
$ curl https://nanitor.io/files/misc/test.txt
SUCCESS
If you receive "SUCCESS" back from the command above it means your configuration is working. If it is not working you may need to log out and back in to trigger the environment change.