Assume you already have a domain name (e.g. This can be easily done on Debian with a2enmod command, where it create symbolic links in the next directory.Ĩ) Now you only need to configure Apache site and you are ready. $> openssl req -x509 -nodes -days 999 -newkey rsa:2048 -keyout mygit_ssl.key -out mygit_ssl.crtħ) Also, we need a few modules to be enabled on Apache, so make sure mod_ssl, mod_cgi, mod_alias, and mod_env are enabled. Fill all the fields you like that the next command requires. On the same directory create the certificate and the private keys pair. Create a specific directory and file, with restricted privileges to So, I created a self signed SSL certificate using openssl. So, using this strategy we can define as many Git users as we need, without creating Unix users. On Debian, when you install apache2 package, user $> chown -R These users are irrelevant to Unix users of OS. $> apt-get install git apache2 apache2-utils opensslĢ) As we need many Git repositories, we create a base directory that all repositories will be included.ģ) Create a bare Git repository, where developers can pull and push code.Ĥ) We will use Apache 2 HTTP server to support HTTP(S) for Git. ![]() Using these clever cgi scripts, which now are part of stable Git, we can easily setup a Git server that supports read/write via HTTP(S).ġ) Install all required packages on Debian: ![]() Almost 2 years ago Smart HTTP Transport came up. Until recently, Git HTTP(S) was working only for read actions (only clone, fetch, pull, …). Many people are behind a firewall, which most of times permit access only to HTTP(S). ![]() Git supports 4 network protocols to transfer data: SSH, Local, Git, and HTTP(S). I will describe here a fast and minimal configuration of how to turn a Debian GNU/Linux box to a Git server that supports read and write actions via HTTP(S). I guess you already know the advantages of Git over Subversion, as there are too many discussions for this subject. Three months ago we decided to move our projects to Git.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |