Skip to content

Allow the use of different domains for the gitlab web interface and repository access #157

Open
@Scharrels

Description

@Scharrels

The self-hosted gitlab configuration asks for one url for both the web interface and repository access:

[gitrepo "myprecious"]
    type = gitlab
    token = YourSuperPrivateKey
    fqdn = gitlab.example.org

However, it is possible to host the gitlab web interface on a subpath of a domain: https://example.org/gitlab/

Similarly, it is possible to use an entirely different (sub)domain for the repository access: https://git.example.org/

I would suggest to support these possibilities in the git-repo configuration for self-hosted gitlab instances:

[gitrepo "myprecious"]
    type = gitlab
    token = YourSuperPrivateKey
    website = example.org/gitlab/
    repositories = gitlab.example.org

It might be nice to keep supporting fqdn as a shorthand, for backwards compatibility and for the common case, where website and repositories are hosted on the same domain, without subpaths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions