home readme diff tree note docs

git.ws

This is the git repo for this website. It includes the git.awk and the mailto.awk files.
They are very easy to setup if you are using lighttpd or apache.

Git
---------------------------------------

Add all git repos to /var/git

Lighttpd Setup
-------------------
Setup git http backend like this:
alias.url += ( "/repo" => "/usr/lib/git-core/git-http-backend" )
  $HTTP["url"] =~ "^/repo" {
	cgi.assign = ("" => "")
	setenv.add-environment = (
		"GIT_PROJECT_ROOT" => "/var/git",
		"GIT_HTTP_EXPORT_ALL" => ""
	)
  }

If you want to have a wildcard DNS record that redirects all subdomains to the correct git
repo README page add this:
$HTTP["host"] =~ "^([^.]+)\.git\.ws$" {
  url.redirect = ( "^/(.*)" => "http://git.ws/cgi-bin/git.awk?name=%1&action=readme" )
}

Mailto
--------------------------------------

All emails will be served out of /var/mailto