{"action":"closed","issue":{"url":"https://api.github.com/repos/revinfrastruct/megafon/issues/3","repository_url":"https://api.github.com/repos/revinfrastruct/megafon","labels_url":"https://api.github.com/repos/revinfrastruct/megafon/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/revinfrastruct/megafon/issues/3/comments","events_url":"https://api.github.com/repos/revinfrastruct/megafon/issues/3/events","html_url":"https://github.com/revinfrastruct/megafon/issues/3","id":180486138,"number":3,"title":"Websocket proxying","user":{"login":"sandnuggah","id":499128,"avatar_url":"https://avatars.githubusercontent.com/u/499128?v=3","gravatar_id":"","url":"https://api.github.com/users/sandnuggah","html_url":"https://github.com/sandnuggah","followers_url":"https://api.github.com/users/sandnuggah/followers","following_url":"https://api.github.com/users/sandnuggah/following{/other_user}","gists_url":"https://api.github.com/users/sandnuggah/gists{/gist_id}","starred_url":"https://api.github.com/users/sandnuggah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandnuggah/subscriptions","organizations_url":"https://api.github.com/users/sandnuggah/orgs","repos_url":"https://api.github.com/users/sandnuggah/repos","events_url":"https://api.github.com/users/sandnuggah/events{/privacy}","received_events_url":"https://api.github.com/users/sandnuggah/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/revinfrastruct/megafon/labels/bug","name":"bug","color":"ee0701"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-01T23:34:41Z","updated_at":"2016-10-12T20:28:02Z","closed_at":"2016-10-12T20:28:02Z","body":"```nginx\r\n#nginx.conf\r\nhttp {\r\n    #...\r\n    map $http_upgrade $connection_upgrade {\r\n      default upgrade;\r\n      \"\"      close;\r\n    }\r\n}\r\n```\r\n\r\n```nginx\r\n#conf.d/default.conf\r\nserver {\r\n    #...\r\n    location / {\r\n        proxy_pass http://browser:5000/;\r\n        proxy_http_version 1.1;\r\n        proxy_set_header Upgrade $http_upgrade;\r\n        proxy_set_header Connection $connection_upgrade;\r\n    }\r\n}\r\n```\r\n\r\nFår detta fel, wtf? Verkar som att `$connection_upgrade` inte följer med?\r\n\r\n```\r\nmegafon-nginx | 2016/10/01 23:39:49 [emerg] 8#8: invalid number of arguments in \"proxy_set_header\" directive in /etc/nginx/conf.d/default.conf:8\r\nmegafon-nginx | nginx: [emerg] invalid number of arguments in \"proxy_set_header\" directive in /etc/nginx/conf.d/default.conf:8\r\n```\r\n\r\nDokumentation: http://nginx.org/en/docs/http/websocket.html"}}
{"actor":{"display_login":"sandnuggah"}}