# Inconsistant Repository URL

**URL:** <https://forum.gitea.com/t/inconsistant-repository-url/3419>\
**Category:** Install/Maintain/Configure\
**Created:** [June 27, 2021, 10:20pm UTC](https://forum.gitea.com/t/inconsistant-repository-url/3419 "2021-06-27T22:20:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dvw](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@dvw](https://forum.gitea.com/u/dvw)\
**Post date:** [June 27, 2021, 10:20pm UTC](https://forum.gitea.com/t/inconsistant-repository-url/3419/1 "2021-06-27T22:20:50Z")

</div>

A new repository URL is stated differently on the same web page. On the top of the page, it is stated as something like “[http://xx.xxx.xx.xxx/me/my-project.git](http://xx.xxx.xx.xxx/me/my-project.git)”, which is correct. In the rest of the page, it is stated as “git@localhost:me/my-project.git”, however.

```auto
touch README.md
git init

git add README.md
git commit -m "first commit"
git remote add origin git@localhost:me/my-project.git
git push -u origin master

```

and

```auto
git remote add origin git@localhost:me/my-project.git
git push -u origin master

```

I guess the “localhost” comes from the docker deployment. Is it a bug or something we don’t do properly?

---

<div class="post-metadata">

**Author:** ![TJvV](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@TJvV](https://forum.gitea.com/u/TJvV)\
**Post date:** [June 28, 2021, 7:19am UTC](https://forum.gitea.com/t/inconsistant-repository-url/3419/2 "2021-06-28T07:19:40Z")

</div>

Hi,

This has probably to do with your configuration in app.ini.  
Check your ROOT\_URL and (SSH\_)DOMAIN variables in the [server] section.

---

<div class="post-metadata">

**Author:** ![dvw](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@dvw](https://forum.gitea.com/u/dvw)\
**Post date:** [July 7, 2021, 6:36pm UTC](https://forum.gitea.com/t/inconsistant-repository-url/3419/3 "2021-07-07T18:36:42Z")

</div>

Thanks for the info. We will take a note on the matter.
