{"action":"created","issue":{"url":"https://api.github.com/repos/shadowsocks/simple-obfs/issues/74","repository_url":"https://api.github.com/repos/shadowsocks/simple-obfs","labels_url":"https://api.github.com/repos/shadowsocks/simple-obfs/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/shadowsocks/simple-obfs/issues/74/comments","events_url":"https://api.github.com/repos/shadowsocks/simple-obfs/issues/74/events","html_url":"https://github.com/shadowsocks/simple-obfs/pull/74","id":236539961,"number":74,"title":"Make the HTTP obfuscation work behind an NGINX reverse proxy","user":{"login":"t123yh","id":8972552,"avatar_url":"https://avatars0.githubusercontent.com/u/8972552?v=4","gravatar_id":"","url":"https://api.github.com/users/t123yh","html_url":"https://github.com/t123yh","followers_url":"https://api.github.com/users/t123yh/followers","following_url":"https://api.github.com/users/t123yh/following{/other_user}","gists_url":"https://api.github.com/users/t123yh/gists{/gist_id}","starred_url":"https://api.github.com/users/t123yh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t123yh/subscriptions","organizations_url":"https://api.github.com/users/t123yh/orgs","repos_url":"https://api.github.com/users/t123yh/repos","events_url":"https://api.github.com/users/t123yh/events{/privacy}","received_events_url":"https://api.github.com/users/t123yh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-06-16T17:02:00Z","updated_at":"2018-03-15T03:39:00Z","closed_at":"2017-06-17T04:04:38Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/shadowsocks/simple-obfs/pulls/74","html_url":"https://github.com/shadowsocks/simple-obfs/pull/74","diff_url":"https://github.com/shadowsocks/simple-obfs/pull/74.diff","patch_url":"https://github.com/shadowsocks/simple-obfs/pull/74.patch"},"body":"Changed the following things:\r\n1. Added `Content-Length` header to the initial HTTP request.\r\n2. Make the `http` obfuscator respond immediately after request."},"comment":{"url":"https://api.github.com/repos/shadowsocks/simple-obfs/issues/comments/373250827","html_url":"https://github.com/shadowsocks/simple-obfs/pull/74#issuecomment-373250827","issue_url":"https://api.github.com/repos/shadowsocks/simple-obfs/issues/74","id":373250827,"user":{"login":"Amonhuz","id":11484807,"avatar_url":"https://avatars0.githubusercontent.com/u/11484807?v=4","gravatar_id":"","url":"https://api.github.com/users/Amonhuz","html_url":"https://github.com/Amonhuz","followers_url":"https://api.github.com/users/Amonhuz/followers","following_url":"https://api.github.com/users/Amonhuz/following{/other_user}","gists_url":"https://api.github.com/users/Amonhuz/gists{/gist_id}","starred_url":"https://api.github.com/users/Amonhuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amonhuz/subscriptions","organizations_url":"https://api.github.com/users/Amonhuz/orgs","repos_url":"https://api.github.com/users/Amonhuz/repos","events_url":"https://api.github.com/users/Amonhuz/events{/privacy}","received_events_url":"https://api.github.com/users/Amonhuz/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T03:39:00Z","updated_at":"2018-03-15T03:39:00Z","author_association":"NONE","body":"@t123yh  你好，请问你那里nginx转发可以正常使用吗？\r\n我配好后，在iOS的surge上只能测速，其他应用无法使用代理；在windows上的4.0.9客户端+0.0.5obfs只能更新pac，其他应用无法使用代理。\r\nnginx日志有很多499、502错误。\r\n\r\nobfs试过stand alone模式和plugin模式。\r\nnginx配置试过这两种，能和你的配置对比一下么？\r\n谢谢！\r\n\r\nnginx配置\r\nserver {\r\nlisten 80;\r\nserver_name ;\r\n\r\nlocation / {\r\n    root /usr/share/nginx/html;\r\n    index index.html index.htm;\r\n    proxy_http_version 1.1;\r\n    proxy_set_header Upgrade \"websocket\";\r\n    proxy_set_header Connection \"upgrade\";\r\n    if (\\$http_upgrade = \"websocket\") {\r\n        proxy_pass http://127.0.0.1:9999;\r\n    }\r\n}\r\n}\r\n\r\n和\r\n\r\nserver {\r\nlisten 80;\r\nserver_name\r\n\r\nlocation / {\r\n    root /usr/share/nginx/html;\r\n    index index.html index.htm;\r\n    proxy_http_version 1.1;\r\n    proxy_set_header Upgrade $http_upgrade;\r\n    proxy_set_header Connection \"upgrade\";\r\n    proxy_pass http://127.0.0.1:9999;\r\n}\r\n}\r\n\r\nshadowsocks配置\r\n{\r\n\"server\": \"127.0.0.1\",\r\n\"server_port\": 9999,\r\n\"password\": \"password\",\r\n\"plugin\": \"obfs-server\",\r\n\"plugin_opts\": \"obfs=http\",\r\n\"timeout\": 300,\r\n\"method\": \"xchacha20-ietf-poly1305\",\r\n\"worker\": 1\r\n}"}}
{"actor":{"display_login":"Amonhuz"}}