telize

High performance JSON IP and GeoIP REST API (IP Geolocation)
Log | Files | Refs | README | LICENSE

commit 9bdeb617c8af163af7145f9e02e81530ac1aa67a
parent ccb20c222fb7e0d46c99ee38efda5e528821a16b
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat, 19 Nov 2016 20:09:40 +0100

Wrap lines longer than 80 characters

Diffstat:
Mtelize | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/telize b/telize @@ -65,7 +65,8 @@ server { set $ip $remote_addr; } - # Uncomment when using Telize behind a load balancer, and comment the directive setting X-Real-IP + # Uncomment when using Telize behind a load balancer, and + # comment the directive setting X-Real-IP # proxy_set_header X-Forwarded-For $ip; proxy_set_header X-Real-IP $ip; @@ -95,7 +96,10 @@ server { -- Check for invalid IP addresses if ngx.var.remote_addr == "127.0.0.1" then ngx.status = ngx.HTTP_BAD_REQUEST - ngx.say(cjson.encode({code = 401, message = "Input string is not a valid IP address"})) + ngx.say(cjson.encode({ + code = 401, + message = "Input string is not a valid IP address" + })) ngx.exit(ngx.HTTP_OK) end