Connecting Through A Proxy Server
It is possible to connect to Outlyer via an HTTP proxy server. The proxy server must allow the
"CONNECT" method to port 443 of host
For squid, the default setting is
"ALLOWED TO CONNECT ONLY HTTPS PORT".
Set the environment variable.
HTTPS_PROXY to the value of your proxy server and connect the agent as usual.
You can also achieve the same by adding the environment variable to the
env section in the agent config.
env: HTTPS_PROXY: https://localhost:8888
In case you need to exclude some domains, then add them to the
NO_PROXY environment variable and separate them by commas.
Wildcards are not yet supported.
env: HTTPS_PROXY: https://localhost:8888 NO_PROXY: example.com,sub.example.com
Using Tinyproxy as a Proxy Server
If you don’t have an existing proxy server in your infrastructure, you can use Tinyproxy to do the job. Packages are available for all major Linux operating systems.
The default configuration should work out of the box, but in case not, the following is a minimal configuration that will proxy connections on the localhost.
To make this work for your network, update the line
Allow... to permit traffic for your network.
User nobody Group nogroup Port 8888 Timeout 600 DefaultErrorFile "/usr/share/tinyproxy/default.html" StatFile "/usr/share/tinyproxy/stats.html" Logfile "/var/log/tinyproxy/tinyproxy.log" LogLevel Info PidFile "/var/run/tinyproxy/tinyproxy.pid" MaxClients 100 MinSpareServers 5 MaxSpareServers 20 StartServers 10 MaxRequestsPerChild 0 #### !!! change the following to your network segment #Allow 192.168.0.0/16 Allow 127.0.0.1 ViaProxyName "tinyproxy" ConnectPort 443