Wrong domain name in repository url #187

Closed
opened 2025-11-02 03:13:04 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @yusiwen on GitHub (Jan 1, 2017).

I've run my own gitea instance for a long time and it works fine all the time until today, I git pulled the latest master branch from here. And the URL of every repo becomes something like git@localhost:USER/REPO.git, which should be git@MYDOMAIN:USER/REPO.git.

In custom/conf/app.ini , I've set DOMAIN to my domain, and it worked before. What's wrong? Is there something changes in the config file?

  • Gitea version (or commit ref): b7e1bccc50
  • Git version: 2.10
  • Operating system: Ubuntu 16.04 X64
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Thanks

Originally created by @yusiwen on GitHub (Jan 1, 2017). I've run my own gitea instance for a long time and it works fine all the time until today, I git pulled the latest `master` branch from here. And the URL of every repo becomes something like `git@localhost:USER/REPO.git`, which should be `git@MYDOMAIN:USER/REPO.git`. In `custom/conf/app.ini` , I've set `DOMAIN` to my domain, and it worked before. What's wrong? Is there something changes in the config file? - Gitea version (or commit ref): b7e1bccc501c5246e6f8b9bed4853b90e9a447c5 - Git version: 2.10 - Operating system: Ubuntu 16.04 X64 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant Thanks
GiteaMirror added the reviewed/wontfix label 2025-11-02 03:13:04 -06:00
Author
Owner

@lunny commented on GitHub (Jan 2, 2017):

Could you try to change or add SSH_DOMAIN to your ssh host name?

@lunny commented on GitHub (Jan 2, 2017): Could you try to change or add SSH_DOMAIN to your ssh host name?
Author
Owner

@yusiwen commented on GitHub (Jan 2, 2017):

OK, it works after adding SSH_DOMAIN to my custom/conf/app.ini, in the server section.

Thanks

@yusiwen commented on GitHub (Jan 2, 2017): OK, it works after adding `SSH_DOMAIN` to my `custom/conf/app.ini`, in the `server` section. Thanks
Author
Owner

@guyspr commented on GitHub (Jan 17, 2017):

Would be nice to see this added in the config cheat sheer (https://docs.gitea.io/en-us/config-cheat-sheet/). I ran into this issue and was able to find it here, but would have found it more quickly if it was documented.

@guyspr commented on GitHub (Jan 17, 2017): Would be nice to see this added in the config cheat sheer (https://docs.gitea.io/en-us/config-cheat-sheet/). I ran into this issue and was able to find it here, but would have found it more quickly if it was documented.
Author
Owner

@appleboy commented on GitHub (Jan 19, 2017):

@guyspronck This PR https://github.com/go-gitea/docs/pull/75

cc @lunny @tboerger

@appleboy commented on GitHub (Jan 19, 2017): @guyspronck This PR https://github.com/go-gitea/docs/pull/75 cc @lunny @tboerger
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#187