{"action":"closed","issue":{"url":"https://api.github.com/repos/containous/traefik/issues/2024","repository_url":"https://api.github.com/repos/containous/traefik","labels_url":"https://api.github.com/repos/containous/traefik/issues/2024/labels{/name}","comments_url":"https://api.github.com/repos/containous/traefik/issues/2024/comments","events_url":"https://api.github.com/repos/containous/traefik/issues/2024/events","html_url":"https://github.com/containous/traefik/issues/2024","id":253706668,"node_id":"MDU6SXNzdWUyNTM3MDY2Njg=","number":2024,"title":"Wrong HTTPS redirect when also using AddPrefix","user":{"login":"schoren","id":314548,"node_id":"MDQ6VXNlcjMxNDU0OA==","avatar_url":"https://avatars1.githubusercontent.com/u/314548?v=4","gravatar_id":"","url":"https://api.github.com/users/schoren","html_url":"https://github.com/schoren","followers_url":"https://api.github.com/users/schoren/followers","following_url":"https://api.github.com/users/schoren/following{/other_user}","gists_url":"https://api.github.com/users/schoren/gists{/gist_id}","starred_url":"https://api.github.com/users/schoren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schoren/subscriptions","organizations_url":"https://api.github.com/users/schoren/orgs","repos_url":"https://api.github.com/users/schoren/repos","events_url":"https://api.github.com/users/schoren/events{/privacy}","received_events_url":"https://api.github.com/users/schoren/received_events","type":"User","site_admin":false},"labels":[{"id":410567211,"node_id":"MDU6TGFiZWw0MTA1NjcyMTE=","url":"https://api.github.com/repos/containous/traefik/labels/area/provider/k8s","name":"area/provider/k8s","color":"d4c5f9","default":false},{"id":591453030,"node_id":"MDU6TGFiZWw1OTE0NTMwMzA=","url":"https://api.github.com/repos/containous/traefik/labels/kind/bug/possible","name":"kind/bug/possible","color":"ee0701","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2017-08-29T15:28:40Z","updated_at":"2018-10-25T15:42:40Z","closed_at":"2018-10-25T15:42:40Z","author_association":"NONE","body":"<!--\r\nDO NOT FILE ISSUES FOR GENERAL SUPPORT QUESTIONS.\r\n\r\nThe issue tracker is for reporting bugs and feature requests only.\r\nFor end-user related support questions, refer to one of the following:\r\n\r\n- Stack Overflow (using the \"traefik\" tag): https://stackoverflow.com/questions/tagged/traefik\r\n- the Traefik community Slack channel: https://traefik.herokuapp.com\r\n\r\n-->\r\n\r\n\r\n### Do you want to request a *feature* or report a *bug*?\r\nBug\r\n\r\n<!--\r\nIf you intend to ask a support question: DO NOT FILE AN ISSUE.\r\n-->\r\n\r\n### What did you do?\r\nI'm using traefik as a kubernetes ingress controller. I have configured HTTPS redirect as follows in the TOML config file:\r\n\r\n```toml\r\n[entryPoints]\r\n  [entryPoints.http]\r\n  address = \":80\"\r\n  [entryPoints.http.redirect]\r\n    regex = \"^http://(.*)\"\r\n    replacement = \"https://$1\"\r\n  [entryPoints.https]\r\n  address = \":443\"\r\n  [entryPoints.https.tls]\r\n```\r\n\r\nI have also configured an ingress like this:\r\n\r\n```yaml\r\napiVersion: extensions/v1beta1\r\nkind: Ingress\r\nmetadata:\r\n  name: test\r\n  annotations:\r\n    kubernetes.io/tls-acme: \"true\"\r\n    kubernetes.io/ingress.class: \"traefik\"\r\n    traefik.frontend.rule.type: \"AddPrefix\"\r\nspec:\r\n  tls:\r\n  - hosts:\r\n    - demo.example.com\r\n    secretName: tls\r\n  rules:\r\n  - host: demo.example.com\r\n    http:\r\n      paths:\r\n      - path: /path\r\n        backend:\r\n          serviceName: myservice\r\n          servicePort: 80\r\n```\r\n\r\n<!--\r\n\r\nHOW TO WRITE A GOOD ISSUE?\r\n\r\n- Respect the issue template as more as possible.\r\n- If it's possible use the command `traefik bug`. See https://www.youtube.com/watch?v=Lyz62L8m93I. \r\n- The title must be short and descriptive.\r\n- Explain the conditions which led you to write this issue: the context.\r\n- The context should lead to something, an idea or a problem that you’re facing.\r\n- Remain clear and concise.\r\n- Format your messages to help the reader focus on what matters and understand the structure of your message, use Markdown syntax https://help.github.com/articles/github-flavored-markdown\r\n\r\n-->\r\n\r\n### What did you expect to see?\r\n\r\nWhen accessing `http://demo.example.com`, I wanted it to redirect to `https://demo.example.com`.\r\n\r\n### What did you see instead?\r\n\r\nWhen accessing `http://demo.example.com`, I wanted it to redirect to `https://demo.example.com/path`.\r\n\r\n### Output of `traefik version`: (_What version of Traefik are you using?_)\r\n\r\n<!--\r\nFor the Traefik Docker image:\r\n    docker run [IMAGE] version\r\n    ex: docker run traefik version\r\n-->\r\n\r\n```\r\nVersion:      v1.3.7\r\nCodename:     raclette\r\nGo version:   go1.8.3\r\nBuilt:        2017-08-25_08:56:06PM\r\nOS/Arch:      linux/amd64\r\n```\r\n\r\n### What is your environment & configuration (arguments, toml, provider, platform, ...)?\r\n\r\n```toml\r\ndefaultEntryPoints = [\"http\",\"https\"]\r\n[entryPoints]\r\n  [entryPoints.http]\r\n  address = \":80\"\r\n  [entryPoints.http.redirect]\r\n    regex = \"^http://(.*)\"\r\n    replacement = \"https://$1\"\r\n  [entryPoints.https]\r\n  address = \":443\"\r\n  [entryPoints.https.tls]\r\n[acme]\r\nemail = \"certmaster@example.com\"\r\nstorage = \"/acme/acme.json\"\r\nentryPoint = \"https\"\r\nonDemand = false\r\nOnHostRule = true\r\nacmelogging = true\r\ncaServer = \"https://acme-v01.api.letsencrypt.org/directory\"\r\nacmeLogging = true\r\n```\r\n<!--\r\nAdd more configuration information here.\r\n-->\r\n"}}
{"actor":{"display_login":"dtomcej"}}