Moved the nginx config generator to its own script.

Contains the snippet for cgit