{"action":"created","issue":{"url":"https://api.github.com/repos/docker/dockercloud-haproxy/issues/125","repository_url":"https://api.github.com/repos/docker/dockercloud-haproxy","labels_url":"https://api.github.com/repos/docker/dockercloud-haproxy/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/docker/dockercloud-haproxy/issues/125/comments","events_url":"https://api.github.com/repos/docker/dockercloud-haproxy/issues/125/events","html_url":"https://github.com/docker/dockercloud-haproxy/issues/125","id":182622945,"number":125,"title":"Redirect 80 -> 443 and forward 443 to 8080","user":{"login":"anaibol","id":3210177,"avatar_url":"https://avatars.githubusercontent.com/u/3210177?v=3","gravatar_id":"","url":"https://api.github.com/users/anaibol","html_url":"https://github.com/anaibol","followers_url":"https://api.github.com/users/anaibol/followers","following_url":"https://api.github.com/users/anaibol/following{/other_user}","gists_url":"https://api.github.com/users/anaibol/gists{/gist_id}","starred_url":"https://api.github.com/users/anaibol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anaibol/subscriptions","organizations_url":"https://api.github.com/users/anaibol/orgs","repos_url":"https://api.github.com/users/anaibol/repos","events_url":"https://api.github.com/users/anaibol/events{/privacy}","received_events_url":"https://api.github.com/users/anaibol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-12T20:15:17Z","updated_at":"2016-11-28T18:43:09Z","closed_at":null,"body":"My webapp container exposes port 8080 and an api port 3030.\n\nDockercloud/haproxy container should listen to port 443 and 80 (-> 443).\n\nI am using Stackfiles and I've been redirecting the path `/api` with `VIRTUAL_HOST=*/api/*`.\n\nAdding SSL support, I am not sure if I have to replace line breaks on the `DEFAULT_SSL_CERT` param.\nFor the http -> https redirect I am using the `FORCE_SSL` param.\n\nWhat config should I use for the forward? I am on the right way with this config?\n\n`````` api:\n  autoredeploy: true\n  environment:\n    - \"VIRTUAL_HOST=*/api/*\"\n    - \"VIRTUAL_HOST_WEIGHT=1\"\n    - \"FORCE_SSL=yes\"\n  image: \"anaibol/webapp-api:latest\"\nweb:\n  autoredeploy: true\n  environment:\n    - \"VIRTUAL_HOST=*\"\n    - \"VIRTUAL_HOST_WEIGHT=0\"\n    - \"FORCE_SSL=yes\"\n  image: \"anaibol/webapp:latest\"\n  links:\n    - api\nlb:\n  image: \"dockercloud/haproxy:latest\"\n  links:\n    - api\n    - web\n  ports:\n    - \"443:443\"\n    - \"80:80\"\n  roles:\n    - global\n  environment:\n    - \"DEFAULT_SSL_CERT=-----BEGIN CERTIFICATE-----\\n...\\n-----END CERTIFICATE-----\"```\n``````\n"},"comment":{"url":"https://api.github.com/repos/docker/dockercloud-haproxy/issues/comments/263356156","html_url":"https://github.com/docker/dockercloud-haproxy/issues/125#issuecomment-263356156","issue_url":"https://api.github.com/repos/docker/dockercloud-haproxy/issues/125","id":263356156,"user":{"login":"tifayuki","id":5781551,"avatar_url":"https://avatars.githubusercontent.com/u/5781551?v=3","gravatar_id":"","url":"https://api.github.com/users/tifayuki","html_url":"https://github.com/tifayuki","followers_url":"https://api.github.com/users/tifayuki/followers","following_url":"https://api.github.com/users/tifayuki/following{/other_user}","gists_url":"https://api.github.com/users/tifayuki/gists{/gist_id}","starred_url":"https://api.github.com/users/tifayuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tifayuki/subscriptions","organizations_url":"https://api.github.com/users/tifayuki/orgs","repos_url":"https://api.github.com/users/tifayuki/repos","events_url":"https://api.github.com/users/tifayuki/events{/privacy}","received_events_url":"https://api.github.com/users/tifayuki/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T18:43:08Z","updated_at":"2016-11-28T18:43:08Z","body":"@robertavram \r\n\r\nDidn't test, but I guess you have to set `VIRTUAL_HOST=http://*, https://*` in your `web-dev`,"}}
{"actor":{"display_login":"tifayuki"}}