How to set proxy?

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.3
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We need to set proxy setting when connecting via:
      uri = ("mongodb://{}:{}@{}:{}").format(info['username'],
      info['password'],
      info['host1'],
      info['port'],
      info['host2'],
      info['port'])
      print("Connecting... ")
      print(uri)
      self.client = MongoClient(uri)
      self.db = self.client.get_database(info['database'])

      Is there support for this in MongoDB/PyMongo or we have to hack it someway?
      Thanks in advance.

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              Konrad [X]
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: