Skip to content

Docker registry will not work when app url contains port #31249

Closed
@yp05327

Description

@yp05327

Description

@wxiaoguang
It seems that the changes in #30885 is not correct.
httplib.GuessCurrentAppURL(ctx) will not return the correct URL when the url contains port
image

I tried to login docker with a url which contains port, then you can see the port is missing in the token request url.
)65H{`JXF2OGLNJ%YI2T44H

Gitea Version

1.22.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

docker

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions