{"action":"created","issue":{"url":"https://api.github.com/repos/twn39/code/issues/146","repository_url":"https://api.github.com/repos/twn39/code","labels_url":"https://api.github.com/repos/twn39/code/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/twn39/code/issues/146/comments","events_url":"https://api.github.com/repos/twn39/code/issues/146/events","html_url":"https://github.com/twn39/code/issues/146","id":239087407,"number":146,"title":"NetData监控","user":{"login":"twn39","id":1572872,"avatar_url":"https://avatars3.githubusercontent.com/u/1572872?v=3","gravatar_id":"","url":"https://api.github.com/users/twn39","html_url":"https://github.com/twn39","followers_url":"https://api.github.com/users/twn39/followers","following_url":"https://api.github.com/users/twn39/following{/other_user}","gists_url":"https://api.github.com/users/twn39/gists{/gist_id}","starred_url":"https://api.github.com/users/twn39/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twn39/subscriptions","organizations_url":"https://api.github.com/users/twn39/orgs","repos_url":"https://api.github.com/users/twn39/repos","events_url":"https://api.github.com/users/twn39/events{/privacy}","received_events_url":"https://api.github.com/users/twn39/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-28T08:20:49Z","updated_at":"2017-06-28T08:22:50Z","closed_at":null,"body":"nginx配置：\r\n\r\n```\r\nupstream netdata {\r\n        server 127.0.0.1:19999;\r\n        keepalive 64;\r\n}\r\nserver {\r\n        listen 9070;\r\n\r\n        auth_basic  \"Restricted\";\r\n        auth_basic_user_file  /etc/nginx/htpasswd;\r\n        proxy_set_header Host  $host;\r\n        proxy_http_version 1.1;\r\n        proxy_set_header X-Forwarded-Host $host;\r\n        proxy_set_header X-Forwarded-Server $host;\r\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n        proxy_pass_request_headers on;\r\n        proxy_set_header Connection \"keep-alive\";\r\n        proxy_store off;\r\n\r\n        location / {\r\n                proxy_pass http://netdata;\r\n        }\r\n\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/twn39/code/issues/comments/311591413","html_url":"https://github.com/twn39/code/issues/146#issuecomment-311591413","issue_url":"https://api.github.com/repos/twn39/code/issues/146","id":311591413,"user":{"login":"twn39","id":1572872,"avatar_url":"https://avatars3.githubusercontent.com/u/1572872?v=3","gravatar_id":"","url":"https://api.github.com/users/twn39","html_url":"https://github.com/twn39","followers_url":"https://api.github.com/users/twn39/followers","following_url":"https://api.github.com/users/twn39/following{/other_user}","gists_url":"https://api.github.com/users/twn39/gists{/gist_id}","starred_url":"https://api.github.com/users/twn39/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twn39/subscriptions","organizations_url":"https://api.github.com/users/twn39/orgs","repos_url":"https://api.github.com/users/twn39/repos","events_url":"https://api.github.com/users/twn39/events{/privacy}","received_events_url":"https://api.github.com/users/twn39/received_events","type":"User","site_admin":false},"created_at":"2017-06-28T08:22:50Z","updated_at":"2017-06-28T08:22:50Z","body":"生成htpasswd文件\r\n```\r\nopenssl passwd -crypt password\r\n```\r\n\r\n保存为：\r\n\r\n```\r\nuser:password\r\n```\r\n格式为htpasswd文件"}}
{"actor":{"display_login":"twn39"}}