repman-io / repman

Repman - PHP Repository Manager: packagist proxy and host for private packages
https://repman.io
MIT License
508 stars 105 forks source link

AWS ELB offloading, impossible link with Oauth Provider #678

Closed pascallap closed 1 month ago

pascallap commented 1 month ago

Request for behind AWS Elastic Load Balancer with SSL offloading are dropping the s in https protocol.

So during installation / setup of the first user. The url generated for the Oauth provider (bitbucket in our case) isn't a valid redirect_uri.

The TRUSTED_PROXIES environment variable is a good starting point. But without the TrustedHeader set to Request::HEADER_X_FORWARDED_AWS_ELB, it is impossible to get a proper uri.

pascallap commented 1 month ago

TRUSTED_PROXIES was enough.