public
Fork of defunkt/nginx_config_generator
Description: Generates nginx config files from YAML.
Homepage: http://errtheblog.com/posts/52-nginx-config-like-whoa
Clone URL: git://github.com/pyrat/nginx_config_generator.git
name age message
file LICENSE Tue Apr 24 01:15:52 -0700 2007 adding in everything [defunkt]
file README.textile Loading commit data...
directory bin/ Tue Apr 24 02:19:25 -0700 2007 here we go, get this guy in shape [defunkt]
directory lib/
file nginx_config_generator.gemspec
README.textile

Check out original post:
http://errtheblog.com/post/3908

Use it:
$ generate_nginx_config nginx_config.yml /etc/nginx.conf

See an example config file:
$ generate_nginx_config —example

You can set two environment variables:
– NGINX_CONFIG_YAML to specify the YAML config file
– NGINX_CONFIG_FILE to specify the nginx config file

By default, generate_nginx_config won’t overwrite your OUT file. To rock this behavior,
pass in —overwrite or -o or -y or —force or -f. Whichever.

Vhosts:
If you have installed nginx on ubuntu via apt-get / aptitude or wish to only generate virtual hosts
instead of a whole config pass in —vhosts, —vhost or —ubuntu. This spits out a vhosts file
which you can pop in your sites-available directory.

>> Chris Wanstrath
=> chris[at]ozmm[dot]org