Archives pour septembre, 2014

Git : fichier de configuration basique

$ vim ~/.gitconfig
[user]
	name = <USERNAME>
	email = <EMAIL>

[color]
        branch = auto
        diff = auto
        status = auto

[alias]
	s = status --short
	d = diff
	dw = diff --word-diff
	l = log -1
	l1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
	l2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n''          %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all

[push]
	default = simple

[pull]
	rebase = true

[core]
	excludesfile = ~/.gitignore

Apache : proxy avec support SSL

<VirtualHost *:443>
   ServerName gitlab.my.domain

   SSLEngine On
   SSLCertificateFile /etc/ssl/certs/my.domain.crt
   SSLCertificateKeyFile /etc/ssl/private/my.domain.key
   SSLCertificateChainFile /etc/ssl/certs/my.domain.ca

   SSLProxyEngine on
   ProxyPass / https://gitlab.my.domain/
   ProxyPassReverse / https://gitlab.my.domain/
   ProxyPreserveHost On

   <Location />
      Order allow,deny
      Allow from all
   </Location>
</VirtualHost>
Haut de page