Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/nginx/templates/nginx.conf.erb

Issue 29326153: Issue 3011 - Integrate GeoIP with Nginx configuration (Closed)
Patch Set: Created Sept. 8, 2015, 6:19 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/nginx/manifests/init.pp ('k') | modules/web/manifests/server.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/nginx/templates/nginx.conf.erb
diff --git a/modules/nginx/templates/nginx.conf.erb b/modules/nginx/templates/nginx.conf.erb
index ff0b0d5147092ec16350475320b280b6bf97460c..8f676785510fc23441e983d34d8ce343097f4f1f 100644
--- a/modules/nginx/templates/nginx.conf.erb
+++ b/modules/nginx/templates/nginx.conf.erb
@@ -52,6 +52,13 @@ http {
server_names_hash_bucket_size 64;
+ <% if @geoip_country %>
+ geoip_country <%= @geoip_country %>;
+ <% end %>
+ <% if @geoip_city %>
+ geoip_city <%= @geoip_city %>;
+ <% end %>
+
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
« no previous file with comments | « modules/nginx/manifests/init.pp ('k') | modules/web/manifests/server.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld