Closed Gemineye closed 9 months ago
Is there a reason you use nginx? That's not what is documented, I'm not sure if that could cause troubles here?
Hi, we have an application that needs HTTPS and uses SAML OAuth (even in DEV env with an allowed development URL xyz.test). And we see that the return URL contains the :8000 port (xyz.test:8000).
Got it! I'm not sure what is the root cause for that. You might want to dive into https://github.com/brefphp/local-api-gateway to see if you can spot the problem.
Hmm you use 'x-forwarded-port': ${request.socket.localPort}
, maybe this should be a fallback if there is nothing in the request.
That might be a good idea, I haven't checked or tested though
I fixed my issue with setting LISTEN_PORT: 443
. So it will internaly forward the port 443 and we have the expected behavior. Maybe you should add this in your README.md.
Thanks for your help. I think you can close this issue.
A PR is always welcome 👍
Description:
I use bref/php-82-fpm-dev behind a nginx server to develop in https mode. But i always have some urls that don't work like the web profiler toolbar.
i have to set
$_SERVER['HTTP_X_FORWARDED_PORT'] = '443';
in my index.php
and
How to reproduce:
This is my nginx proxy setup: