memc = None
if not hits:
# No hits found - so try to get them from the search server
- c = httplib.HTTPSConnection(settings.ARCHIVES_SEARCH_SERVER, strict=True, timeout=5)
+ if settings.ARCHIVES_SEARCH_PLAINTEXT:
+ c = httplib.HTTPConnection(settings.ARCHIVES_SEARCH_SERVER, strict=True, timeout=5)
+ else:
+ c = httplib.HTTPSConnection(settings.ARCHIVES_SEARCH_SERVER, strict=True, timeout=5)
c.request('POST', '/archives-search/', urlstr, {'Content-type': 'application/x-www-form-urlencoded; charset=utf-8'})
c.sock.settimeout(20) # Set a 20 second timeout
try:
VARNISH_PURGERS=() # Extra servers that can do varnish purges through our queue
LIST_ACTIVATORS=() # Servers that can activate lists
ARCHIVES_SEARCH_SERVER="archives.postgresql.org" # Where to post REST request for archives search
+ARCHIVES_SEARCH_PLAINTEXT=False # Contact ARCHIVES_SEARCH_SERVER with http instead of https
FRONTEND_SMTP_RELAY="magus.postgresql.org" # Where to relay user generated email
OAUTH={} # OAuth providers and keys
PGDG_ORG_ID=-1 # id of the PGDG organisation entry