mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-24 09:03:29 +07:00
Dynamic module management (closes #23)
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
nginx_backports: true
|
||||
nginx_php56: true
|
||||
nginx_php70: true
|
||||
nginx_dyn_modules: ['http_geoip']
|
||||
nginx_upstreams:
|
||||
- name: 'test'
|
||||
servers:
|
||||
@@ -106,6 +107,13 @@
|
||||
-----END CERTIFICATE-----
|
||||
nginx_custom_http:
|
||||
- 'add_header X-ansible 1;'
|
||||
- 'geoip_country /usr/share/GeoIP/GeoIP.dat;'
|
||||
- 'map $geoip_country_code $allowed_country {'
|
||||
- ' default yes;'
|
||||
- ' MA no;'
|
||||
- ' DZ no;'
|
||||
- ' TN no;'
|
||||
- '}'
|
||||
nginx_default_vhost: 'first-test'
|
||||
nginx_default_vhost_ssl: 'test-ssl-predeployed.local'
|
||||
nginx_vhosts:
|
||||
|
||||
Reference in New Issue
Block a user