Proxy Support¶
Configuring a proxy allows you to install Assure1 and update packages without the need for a direct internet connection.
Detailed Steps¶
Prerequisites¶
-
Modify /etc/environment and add the following:
https_proxy=PROXYSTRING no_proxy=NOPROXYSTRING
- PROXYSTRING: The proxy connection string detailing the proxy server, user/pass, port, etc. For example, http://myproxy.example.com:3128/
- NOPROXYSTRING: Comma separated list of domains or IPs that should not be proxied, for example .example.com, localhost,127.0.0.1,WEDFQDN, etc. This should at least be the server's local domain (e.g. example.com) to prevent proxied API requests between Assure1 servers.
-
Create a proxy profile script /etc/profile.d/proxy.sh and add the following:
export https_proxy=PROXYSTRING export no_proxy=NOPROXYSTRING
SetupWizard and Perl Scripts¶
-
Login again or source the proxy profile created.
source /etc/profile.d/proxy.sh
-
Verify the environment variables.
# env | grep _proxy https_proxy=http://myproxy.example.com:3128/ no_proxy=.example.com
Updating Assure1 Packages UI¶
-
Copy the example $A1BASEDIR/distrib/config/vendorApache/apache/base-proxy.conf to $A1BASEDIR/etc/apache/.
cp -p $A1BASEDIR/distrib/config/vendorApache/apache/base-proxy.conf $A1BASEDIR/etc/apache/
-
Modify the $A1BASEDIR/etc/apache/base-proxy.conf to replace PROXYSTRING with appropriate proxy string. For example http://myproxy.example.com:3128/
-
Save your work.
-
Use the following command to restart apache:
service assure1-web restart