Skip to content

‘autoredirect‘ force use 'https' #2902

@icefed

Description

@icefed

I'm using nginx to proxy distribution and auth server in kubernetes, both http and https configured. If i enable autoredirect, it always return https location with proxy host, then http port can not be used.

https://github.com/docker/distribution/blob/980d1a696b5c5bed25835f25d06ec2ef3ddc24b0/registry/auth/token/accesscontroller.go#L104

Can we make it smarter? or i disable autoredirect to use realm option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions