{"action":"closed","issue":{"url":"https://api.github.com/repos/getgrav/grav-plugin-admin/issues/1139","repository_url":"https://api.github.com/repos/getgrav/grav-plugin-admin","labels_url":"https://api.github.com/repos/getgrav/grav-plugin-admin/issues/1139/labels{/name}","comments_url":"https://api.github.com/repos/getgrav/grav-plugin-admin/issues/1139/comments","events_url":"https://api.github.com/repos/getgrav/grav-plugin-admin/issues/1139/events","html_url":"https://github.com/getgrav/grav-plugin-admin/issues/1139","id":236686441,"number":1139,"title":"In reverse proxy configurations with https, login attempts to redirect to http","user":{"login":"jaygorrell","id":12174604,"avatar_url":"https://avatars1.githubusercontent.com/u/12174604?v=4","gravatar_id":"","url":"https://api.github.com/users/jaygorrell","html_url":"https://github.com/jaygorrell","followers_url":"https://api.github.com/users/jaygorrell/followers","following_url":"https://api.github.com/users/jaygorrell/following{/other_user}","gists_url":"https://api.github.com/users/jaygorrell/gists{/gist_id}","starred_url":"https://api.github.com/users/jaygorrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaygorrell/subscriptions","organizations_url":"https://api.github.com/users/jaygorrell/orgs","repos_url":"https://api.github.com/users/jaygorrell/repos","events_url":"https://api.github.com/users/jaygorrell/events{/privacy}","received_events_url":"https://api.github.com/users/jaygorrell/received_events","type":"User","site_admin":false},"labels":[{"id":244163948,"url":"https://api.github.com/repos/getgrav/grav-plugin-admin/labels/bug","name":"bug","color":"fc2929","default":true},{"id":245319107,"url":"https://api.github.com/repos/getgrav/grav-plugin-admin/labels/evaluating","name":"evaluating","color":"c7def8","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-17T21:57:34Z","updated_at":"2017-08-22T19:18:49Z","closed_at":"2017-08-22T19:18:49Z","body":"Hey there, we have a reverse proxy configuration where Grav itself is running over http port 8080 behind a Kong proxy. Kong handles serving over https and the ssl termination. \r\n\r\nWith this setup, login itself works fine but it is followed up with a redirect to /admin over http, which fails to load in this setup. If I attempt to go to https again, I am already logged in so I know this is a redirect server-side after getting through.\r\n\r\nMy initial reaction is that the login.html.twig file should use `uri.url(false)` instead of `uri.url` so exclude the hostname that Grav thinks is correct. It's either that or Grav should factor reverse proxy configuration into `uri.url` values. I'm new to Grav so I'm unsure where the correct fix is but modifying the login twig file does seem to fix my issue. If that is acceptable, I can submit the PR."}}
{"actor":{"display_login":"rhukster"}}