def __init__(self, app, conf, **local_conf): self.app = app heat_host = cfg.CONF.proxy.heat_host heat_protocol = cfg.CONF.proxy.heat_protocol if heat_host is None: raise Exception("heat_host is not configured!") self.proxy = wsgi_proxy.make_transparent_proxy(conf, heat_host, heat_protocol) super(ProxyMiddleware, self).__init__(app)
def __init__(self, options): self._options = options heat_host = options.proxy.heat_host heat_protocol = options.proxy.heat_protocol if heat_host is None: raise Exception("heat_host is not configured!") self.proxy = wsgi_proxy.make_transparent_proxy(options, heat_host, heat_protocol) self._manager = managers.GithubManager(options)