Re:Cgit, Nginx and Gitolite: A Personal Git Server
by aigoota on Friday January 22, 2021 @08:59AM
(#25871693)
I used to use a personal git server but the possible security issues and/or making the entire server vulnerable scared me away from it. Instead, I simply use bare git repos on the server and the server is only accessible via ssh/private key. I can simply fetch/push my repos directly. There's really no need for a frontend...
[ Parent
| on HN ]
Re:Cgit, Nginx and Gitolite: A Personal Git Server
by alexhutcheson on Friday January 22, 2021 @12:05PM
(#25873501)
Another option is to run a web GUI like cgit, gitweb, Gitea, or Gogs without exposing it to the internet (so it's only accessible at http://localhost:8888 or similar).
When you want to view it from another machine you can just use SSH port forwarding, like:
ssh -L 8888:localhost:8888 user@hostname
Re:Cgit, Nginx and Gitolite: A Personal Git Server
by moehm on Friday January 22, 2021 @09:09AM
(#25871774)
You interact with Gitolite via ssh. The things Gitolite makes easier for you is it generate those repos for you (no need to login, just push a config file) and it handles access via ssh keys.
I for instance have an own key for my phone, so I can access the repo with my notes etc, but if you steal my phone you cannot push any code.
Re:Cgit, Nginx and Gitolite: A Personal Git Server
by brobdingnagians on Friday January 22, 2021 @10:22AM
(#25872364)
I do the same. There are plenty of tools for local analysis and visualization of git repos; I finder it better to use those as appropriate and just use bare repos cloned from the server.