{"action":"created","issue":{"url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/629","repository_url":"https://api.github.com/repos/kriasoft/react-starter-kit","labels_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/629/labels{/name}","comments_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/629/comments","events_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/629/events","html_url":"https://github.com/kriasoft/react-starter-kit/issues/629","id":151404940,"number":629,"title":"how do i use browsersync with a reverse proxy","user":{"login":"batwicket","id":6760834,"avatar_url":"https://avatars.githubusercontent.com/u/6760834?v=3","gravatar_id":"","url":"https://api.github.com/users/batwicket","html_url":"https://github.com/batwicket","followers_url":"https://api.github.com/users/batwicket/followers","following_url":"https://api.github.com/users/batwicket/following{/other_user}","gists_url":"https://api.github.com/users/batwicket/gists{/gist_id}","starred_url":"https://api.github.com/users/batwicket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batwicket/subscriptions","organizations_url":"https://api.github.com/users/batwicket/orgs","repos_url":"https://api.github.com/users/batwicket/repos","events_url":"https://api.github.com/users/batwicket/events{/privacy}","received_events_url":"https://api.github.com/users/batwicket/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-27T14:48:12Z","updated_at":"2016-04-28T07:15:07Z","closed_at":"2016-04-28T07:15:07Z","body":"I'm using a reverse proxy (haProxy in this case). The proxy is also an SSL terminator.\r\nfrontend : https://localhost\r\nbackend : http://localhost:8080 \r\nI've tried setting the BrowserSync proxy target option to the frontend address, but it insists on bringing up the browser with https://localhost:3000. I'm missing something. Can anyone help?"},"comment":{"url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/comments/215331820","html_url":"https://github.com/kriasoft/react-starter-kit/issues/629#issuecomment-215331820","issue_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/629","id":215331820,"user":{"login":"batwicket","id":6760834,"avatar_url":"https://avatars.githubusercontent.com/u/6760834?v=3","gravatar_id":"","url":"https://api.github.com/users/batwicket","html_url":"https://github.com/batwicket","followers_url":"https://api.github.com/users/batwicket/followers","following_url":"https://api.github.com/users/batwicket/following{/other_user}","gists_url":"https://api.github.com/users/batwicket/gists{/gist_id}","starred_url":"https://api.github.com/users/batwicket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batwicket/subscriptions","organizations_url":"https://api.github.com/users/batwicket/orgs","repos_url":"https://api.github.com/users/batwicket/repos","events_url":"https://api.github.com/users/batwicket/events{/privacy}","received_events_url":"https://api.github.com/users/batwicket/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T07:15:07Z","updated_at":"2016-04-28T07:15:07Z","body":"Modifying the proxy target address to \"https://localhost\" in tools/server.js works. When the browser comes up it displays the url of the BrowserSync proxy server which hooks browser actions and propagates them to other devices registered with BrowserSync. The proxy server forwards the http traffic to the reverse proxy. This isn't entirely transparent because if you try to switch the URL away from the BrowserSync proxy it seems that the events are still hooked so buttons don't work.\r\n\r\nIf you need CORs then problems occur because of the domain switching. You need to configure the BrowserSync proxy server i.e. https://hondo.wtf/posts/enable-cors-in-browsersync/ . I didn't actually do this so the BrowserSync forums might be best if you run into difficulty."}}