15 ms·
Not sure if it's what you're looking for but I self host gitolite on a VPS. Access and auth control is via ssh keys on its user on the server and its script the
by pmontra 4y ago
Not sure if it's what you're looking for but I self host gitolite on a VPS. Access and auth control is via ssh keys on its user on the server and its script there. Administration is via a git push. There are only git repos, no GUI. Git is the API.
- Existenceblinks 4y agoI just look into the gitolite but it doesn't have API. To clarify, what I mean is REST style API via http.
- notwokeno 4y agoDoes git actually let you push over http? I'd imagine that's the same as using ssh/sftp just with WebDAV. If it's the same just create a bare repo in a directory your web server has access to.
- Existenceblinks 4y agoI haven't looked into it but I don't think it's enough to build app on top. Otherwise there wouldn't be a bunch of libgit2 binding. Github is basically building around libgit2 (Rugged) and some of its custom stuff + collaboration UI. It's quite surprising no one has ever built libgit2 as a api service .. yet.
- pmontra 4y agoSo maybe Gitea is what you are looking for. It can be self hosted and they have an API. Links to the documentation from here https://docs.gitea.io/en-us/api-usage/ https://docs.gitea.io/en-us/api-usage/ It's not headless but maybe there is a way to shut down the HTML interface. But probably the same could be said of GitLab.