getgrav / grav-plugin-admin

Grav Admin Plugin
http://getgrav.org
MIT License
355 stars 226 forks source link

In Grav 1.7, admin must follow http_x_forwarded #2214

Open drzraf opened 2 years ago

drzraf commented 2 years ago

With 1.7 I'm getting a reroll of https://github.com/getgrav/grav/issues/1095 / https://github.com/getgrav/grav-plugin-admin/issues/1981 where, after a successful login, I'm redirected to: <hostname>:<internal-port>/admin instead of <hostname>:<external-port>/admin

In Grav 1.7 I have to set http_x_forwarded.port: false to fix the routing for pages redirects doesn't keeps the admin plugin from mis-redirecting.

chrgro commented 1 year ago

I am also seeing this issue. Did you find a resolution?

erenfro commented 10 months ago

I too am seeing this, all because in HAproxy I'm using port 8443 as my ProxyProtocol port to nginx to grav. Cause you can't run ProxyProtocol on the same port. This is a very frustrating issue.