Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing the username string in the Repository URL #32632

Closed
wuda2525 opened this issue Nov 25, 2024 · 3 comments
Closed

Removing the username string in the Repository URL #32632

wuda2525 opened this issue Nov 25, 2024 · 3 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail

Comments

@wuda2525
Copy link

Feature Description

Hey Team,

Apologies if this has been discussed or documented.

I was wondering if it is possible to remove the username in the Repository URL, especially for an Admin user
For example, I have an admin with a username of "bob", when I create a Repository called "Test", Gitea will provide the following URL

http://localhost:3000/bob/Test.git

Is it possible to get rid of the name "bob" in the path and just have it as
http://localhost:3000/Test.git

Or maybe the example below (where r is a short form for repository)
http://localhost:3000/r/Test.git

Thank you for all your time and keep up with this great Project. Testing and running it right now on FreeBSD

Dave

Screenshots

No response

@wuda2525 wuda2525 added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Nov 25, 2024
@yp05327
Copy link
Member

yp05327 commented Nov 25, 2024

Different users can create repositories with the same name.
There can be many Test.git, how to know which one do you want to access?
So this is why URL contains username/organization name.

@wxiaoguang
Copy link
Contributor

Impossible because the path is designed to be /owner/repo

If you'd like to do some tricks, you could either:

  1. Do some rewriting on reverse proxy side
  2. Use some simpler server's like git-http or serve your git repo over ssh directly.

@wxiaoguang wxiaoguang added issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail and removed type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Nov 25, 2024
@wuda2525
Copy link
Author

Thanks @wxiaoguang for providing the reason why we need the owner/repo path.

Dave

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail
Projects
None yet
Development

No branches or pull requests

3 participants