Skip to content

pain with setting base url when needed access from outside by public ip and inside network by internal ip #21007

Closed
@NikolayUvarov

Description

@NikolayUvarov

Description

  1. when starting configuration server listens localhost and not 0.0.0.0 as stating in its log, so
    2022/08/31 10:29:54 cmd/web.go:217:listen() [I] [630f0df2] Listen: http://0.0.0.0:3000
    2022/08/31 10:29:54 cmd/web.go:221:listen() [I] [630f0df2] AppURL(ROOT_URL): http://localhost:3000/
    is just confusing. User cannot connect to server from outside to initial configuration

  2. when setting addres from local net as AppURL e.g. 192.168.2.12:3000 server actually does not listen to that address, but continues response on localhost:3000.

  3. user cannot connect to both external and internal addresses of a server

Gitea Version

1.17.1

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?

initial run via command line, next was planned to run via systemd

Database

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions