Commits

Zhang Huangbin committed c2f40cc

Set http proxy server address in libs/settings.py (HTTP_PROXY)
if iRedAdmin cannot access internet (iredmail.org) directly.
Thanks Bernhard Roth <broth _at_ roth-itk.de> for helping test.

Comments (0)

Files changed (3)

ChangeLog.dbmail_mysql

+= 1.1.2 =
+    * Improvements:
+        + Set http proxy server address in libs/settings.py (HTTP_PROXY)
+          if iRedAdmin cannot access internet (iredmail.org) directly.
+          Thanks Bernhard Roth <broth _at_ roth-itk.de> for helping test.
+
 = 1.1.1 =
     * Fixed:
         * Incorrect SQL syntax.
 import settings
 from ireddate import convert_utc_to_timezone
 
+# Set http_proxy
+if settings.HTTP_PROXY:
+    os.environ['http_proxy'] = settings.HTTP_PROXY
+
 #####################################
 # Store all 'true/false' in session.
 #
 # upgrading iRedAdmin-Pro.
 #################################### WARNING ####################################
 
+# Set http proxy server address if iRedAdmin cannot access iredmail.org directly.
+# Sample:
+#   HTTP_PROXY = 'http://192.168.1.1:3128'
+HTTP_PROXY = ''
+
 # Local timezone. It must be one of below:
 #   GMT-12:00
 #   GMT-11:00