public
Rubygem
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/mattly/nginx_config_generator.git
100644 25 lines (18 sloc) 0.668 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
A work in progress.
 
The original version:
  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.
 
original by:
>> Chris Wanstrath
=> chris[at]ozmm[dot]org
 
new template and configuration options by:
>> Matthew Lyon
=> matt[at]flowerpowered[dot]com