]> git.openstreetmap.org Git - chef.git/commitdiff
tilecache: nginx pass client IP
authorGrant Slater <git@firefishy.com>
Sun, 5 Jan 2014 02:52:08 +0000 (02:52 +0000)
committerGrant Slater <git@firefishy.com>
Sun, 5 Jan 2014 02:52:08 +0000 (02:52 +0000)
cookbooks/tilecache/templates/default/nginx_tile_ssl.conf.erb

index 63d5e14f40eea28bd50a0d6365979f206c76467f..f450322639d9bd13d2d75476c8d27a01a7a6f001 100644 (file)
@@ -11,6 +11,6 @@ server {
     ssl_session_cache shared:SSL:10m;
     ssl_session_timeout 10m;
 
-    location / { proxy_pass http://127.0.0.1; }
+    location / { proxy_pass http://127.0.0.1; proxy_set_header X-Forwarded-For $remote_addr; }
 
 }