{"action":"created","issue":{"url":"https://api.github.com/repos/Alignak-monitoring-contrib/alignak-app/issues/274","repository_url":"https://api.github.com/repos/Alignak-monitoring-contrib/alignak-app","labels_url":"https://api.github.com/repos/Alignak-monitoring-contrib/alignak-app/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/Alignak-monitoring-contrib/alignak-app/issues/274/comments","events_url":"https://api.github.com/repos/Alignak-monitoring-contrib/alignak-app/issues/274/events","html_url":"https://github.com/Alignak-monitoring-contrib/alignak-app/issues/274","id":305614214,"number":274,"title":"Proxy management","user":{"login":"algorys","id":8926922,"avatar_url":"https://avatars1.githubusercontent.com/u/8926922?v=4","gravatar_id":"","url":"https://api.github.com/users/algorys","html_url":"https://github.com/algorys","followers_url":"https://api.github.com/users/algorys/followers","following_url":"https://api.github.com/users/algorys/following{/other_user}","gists_url":"https://api.github.com/users/algorys/gists{/gist_id}","starred_url":"https://api.github.com/users/algorys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algorys/subscriptions","organizations_url":"https://api.github.com/users/algorys/orgs","repos_url":"https://api.github.com/users/algorys/repos","events_url":"https://api.github.com/users/algorys/events{/privacy}","received_events_url":"https://api.github.com/users/algorys/received_events","type":"User","site_admin":false},"labels":[{"id":408373558,"url":"https://api.github.com/repos/Alignak-monitoring-contrib/alignak-app/labels/ideas","name":"ideas","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-15T15:58:20Z","updated_at":"2018-03-17T13:20:29Z","closed_at":null,"author_association":"COLLABORATOR","body":"In case a user uses a proxy, there is no way in App to manage it.\r\n\r\nAccording to the documentation of the requests library, a simple definition of the environment variables could be enough to make the client understand that there is a proxy. (See [Requests: proxies](http://docs.python-requests.org/en/latest/user/advanced/#proxies))\r\n\r\nSo, App could:\r\n\r\n- Add a setting in configuration file: `proxy=`\r\n- Define the variable `HTTP_PROXY` or `HTTPS_PROXY` depends if proxy had **https** or not.\r\n- Then login to client.\r\n\r\nA rapid test (under Linux):\r\n\r\n```python\r\n# Just before login to backend client\r\nimport os\r\nos.environ['HTTP_PROXY'] = 'http://10.0.0.1'\r\n\r\n# Log output\r\n[2018-03-15,17:05:52]-urllib3.connectionpool: [WARNING] Retrying (Retry(total=4, connect=5, read=5, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(\"<urllib3.connection.HTTPConnection object at 0x7f5164b37128>: Failed to establish a new connection: [Errno 110] Connexion terminée par expiration du délai d'attente\",))': http://demo.alignak.net:6000/login\r\n```\r\n\r\nBecause proxy is not here.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Alignak-monitoring-contrib/alignak-app/issues/comments/373919646","html_url":"https://github.com/Alignak-monitoring-contrib/alignak-app/issues/274#issuecomment-373919646","issue_url":"https://api.github.com/repos/Alignak-monitoring-contrib/alignak-app/issues/274","id":373919646,"user":{"login":"algorys","id":8926922,"avatar_url":"https://avatars1.githubusercontent.com/u/8926922?v=4","gravatar_id":"","url":"https://api.github.com/users/algorys","html_url":"https://github.com/algorys","followers_url":"https://api.github.com/users/algorys/followers","following_url":"https://api.github.com/users/algorys/following{/other_user}","gists_url":"https://api.github.com/users/algorys/gists{/gist_id}","starred_url":"https://api.github.com/users/algorys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algorys/subscriptions","organizations_url":"https://api.github.com/users/algorys/orgs","repos_url":"https://api.github.com/users/algorys/repos","events_url":"https://api.github.com/users/algorys/events{/privacy}","received_events_url":"https://api.github.com/users/algorys/received_events","type":"User","site_admin":false},"created_at":"2018-03-17T13:20:29Z","updated_at":"2018-03-17T13:20:29Z","author_association":"COLLABORATOR","body":"@mohierf yes. I think we need to integrate it in client."}}
{"actor":{"display_login":"algorys"}}