From bc99e451d8335ee8ca72cfc43c8ed2e457b5552a Mon Sep 17 00:00:00 2001 From: Tom Noogen Date: Wed, 14 Jun 2017 14:25:04 -0500 Subject: [PATCH] update conf --- files/etc/nginx/sites-enabled/server.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/etc/nginx/sites-enabled/server.conf b/files/etc/nginx/sites-enabled/server.conf index b8b86c4..93bd5ff 100644 --- a/files/etc/nginx/sites-enabled/server.conf +++ b/files/etc/nginx/sites-enabled/server.conf @@ -10,6 +10,7 @@ server { set $sharpen 0; set $mycachekey "empty"; set $geojson ""; + set $myhost ""; # image_filter_crop_offset {left,center,right} {top,center,bottom}; set $crop_offx left; @@ -82,11 +83,10 @@ server { set $protocol "http"; set $image_uri "$2"; set $cmd "resize"; - set $myhost ""; set $image_path ""; -# if no protocl in URL, add them +# if no protocol in URL, add them if ($image_uri !~ "(http:|https:)") { set $image_uri "http://$image_uri"; }