I just installed Gitea (from the Debian package – Debian version 1.3.2+dfsg-3, which is based on version 1.3.2 of Gitea), and it was quite easy to install.
Now, there is one thing that didn’t work: I logged in, created a repository (repo) and the web interface showed me this HTTPS URL:
https://gitea.myhost.domain/my-user/repo.git
Which is good (I could clone the repo from that URL, using my user and password).
But if I click on “SSH”, it doesn’t change the URL shown.
However, if I use this:
gitea@gitea.myhost.domain:my-user/repo.git
I can access the repository via ssh without problems.
So it seems that something got wrong in the web interface. Did I configure something wrong? The server is behind a reverse http proxy (Apache), so ROOT_URL is the external url, different from DOMAIN (but on the same host). This is what I have in app.ini:
ROOT_URL should still be the URL you expose for Gitea - not the one you make apache do reverse proxying to.
Do you have sections in your app.ini? You seem to be missing them, gitea is probably running using the defaults in may cases. ROOT should go under [repository], PROTOCOL under [server]. Here’s the doc. If you want a template of how it should look like, here you go:
Hmm, let’s try something else first. Can you try to do view source on the repository page and look for <input id="repo-clone-url"? Can you paste the html of that part of the page here? (I want to see if the ssh link is somewhere and it just can’t be shown, if the ssh clone link is also an https link in the code or if it’s actually not rendered by the template)
Well – the same happens in both Firefox and Google Chrome (in both of them the URL doesn’t change when I click on SSH).
Yes, there is an error on the console:
jQuery.Deferred exception: $(...).autolink is not a function @https://gitea.aleph0.info/js/index.js?v=7e44814bfdf3ce36777acbb3e58614bb:1473:5
mightThrow@https://gitea.aleph0.info/vendor/plugins/jquery/jquery.min.js:2:15531
resolve/</process<@https://gitea.aleph0.info/vendor/plugins/jquery/jquery.min.js:2:16200
undefined
This is from FF; the same error shows up in Chrome:
jquery.min.js:2 jQuery.Deferred exception: $(...).autolink is not a function TypeError: $(...).autolink is not a function
at HTMLDocument.<anonymous> (https://gitea.aleph0.info/js/index.js?v=7e44814…:1473:20)
at mightThrow (https://gitea.aleph0.info/vendor/plugins/jquery/jquery.min.js:2:15539)
at process (https://gitea.aleph0.info/vendor/plugins/jquery/jquery.min.js:2:16200) undefined
jquery.min.js:2 Uncaught TypeError: $(...).autolink is not a function
at HTMLDocument.<anonymous> (index.js?v=7e44814bf…7acbb3e58614bb:1473)
at mightThrow (jquery.min.js:2)
at process (jquery.min.js:2)
I also tried building from git master, and then nothing wrong happens – so I suppose this is a problem with either the Debian package, or the version that they have packaged (which is outdated anyway).
So, it seems to be up to the Debian maintainer to update and fix the package.
However – I would rather run packaged software instead of running from source, so if this is something that can be trivially fixed, I would be interested in the solution (so I’d stick to the Debian package).