{"action":"closed","issue":{"url":"https://api.github.com/repos/vuejs/vue-cli/issues/1525","repository_url":"https://api.github.com/repos/vuejs/vue-cli","labels_url":"https://api.github.com/repos/vuejs/vue-cli/issues/1525/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-cli/issues/1525/comments","events_url":"https://api.github.com/repos/vuejs/vue-cli/issues/1525/events","html_url":"https://github.com/vuejs/vue-cli/issues/1525","id":330801674,"node_id":"MDU6SXNzdWUzMzA4MDE2NzQ=","number":1525,"title":"Allow relative sockjs URL","user":{"login":"sickp","id":2233,"node_id":"MDQ6VXNlcjIyMzM=","avatar_url":"https://avatars3.githubusercontent.com/u/2233?v=4","gravatar_id":"","url":"https://api.github.com/users/sickp","html_url":"https://github.com/sickp","followers_url":"https://api.github.com/users/sickp/followers","following_url":"https://api.github.com/users/sickp/following{/other_user}","gists_url":"https://api.github.com/users/sickp/gists{/gist_id}","starred_url":"https://api.github.com/users/sickp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sickp/subscriptions","organizations_url":"https://api.github.com/users/sickp/orgs","repos_url":"https://api.github.com/users/sickp/repos","events_url":"https://api.github.com/users/sickp/events{/privacy}","received_events_url":"https://api.github.com/users/sickp/received_events","type":"User","site_admin":false},"labels":[{"id":915272558,"node_id":"MDU6TGFiZWw5MTUyNzI1NTg=","url":"https://api.github.com/repos/vuejs/vue-cli/labels/feat:%20cli-service%20serve","name":"feat: cli-service serve","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-08T21:01:38Z","updated_at":"2018-06-27T21:18:38Z","closed_at":"2018-06-27T21:18:38Z","author_association":"CONTRIBUTOR","body":"### What problem does this feature solve?\r\nI am using Nginx in development to terminate SSL and proxy to the dev-server (https://nginx/ => http://devserver:8080/) with `devServer.public` set appropriately, so I can use HTTPS/HTTP2 during development.\r\n\r\nThis had been working fine until beta16 commit:\r\n\r\nhttps://github.com/vuejs/vue-cli/commit/2cbe373\r\n\r\nwhich makes sockjs URL absolute with the wrong host/port, now in this case: `https://10.0.1.6:8080/sockjs-node`. Previously it was simply `/sockjs-node`.\r\n\r\nI would like an option to either specify `sockjsUrl` explicitly OR an option to omit the protocol/host/port and just use the pathname `/sockjs-node`.\r\n \r\n\r\n\r\n### What does the proposed API look like?\r\n```\r\nmodule.exports = {\r\n   devServer: {\r\n      disableHostCheck: true,\r\n      public: 'local.mox.cc',\r\n      sockjsRelative: true, // OR\r\n      sockjsUrl: '/sockjs-node'\r\n   }\r\n}\r\n```\r\n\r\n<!-- generated by vue-issues. DO NOT REMOVE -->"}}
{"actor":{"display_login":"sickp"}}