{"id":262972,"date":"2015-08-05T16:42:02","date_gmt":"2015-08-05T12:42:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=262972"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=262972","title":{"rendered":"ipgeobase \u0432 Nginx"},"content":{"rendered":"<p>     \t\u041a\u043e\u0433\u0434\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0435\u0433\u043e \u0433\u043e\u0440\u043e\u0434 \u0438 \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0439 (\u0430\u0432\u0442\u043e\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439) \u043a\u043e\u0434 \u0440\u0435\u0433\u0438\u043e\u043d\u0430, \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u2014 \u0434\u0430 \u044d\u0442\u043e \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u0432 \u0438\u043d\u0435\u0442\u0435 \u043f\u043e\u043b\u043d\u043e \u0442\u0430\u043a\u0438\u0445 \u0448\u0442\u0443\u043a!<br \/>  \u0410 \u043f\u043e\u0442\u043e\u043c \u0441\u043c\u043e\u0442\u0440\u0438\u0448\u044c: \u043e\u0434\u043d\u0438 \u043f\u043b\u0430\u0442\u043d\u044b\u0435, \u0434\u0440\u0443\u0433\u0438\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u0443 \u0441\u0435\u0431\u044f \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c, \u0442\u0440\u0435\u0442\u044c\u0438 \u043c\u043e\u0436\u043d\u043e, \u043d\u043e \u044d\u0442\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0437\u0430\u0442\u0440\u0430\u0442\u043d\u043e, \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044b\u0435 \u043e \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u0445 \u0420\u0424 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u044e\u0442\u2026<br \/>  \u0418 \u0442\u0443\u0442 \u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u0441\u043f\u0435\u0448\u0438\u0442 \u0431\u043e\u043b\u044c\u043d\u043e\u0439 \u043c\u043e\u0437\u0433 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430 \u0441 \u043d\u0430\u0432\u044f\u0437\u0447\u0438\u0432\u043e\u0439 \u0438\u0434\u0435\u0435\u0439: <b>\u00ab\u041d\u0435\u0442 \u0443 \u0434\u0440\u0443\u0433\u0438\u0445 \u2014 \u0441\u0434\u0435\u043b\u0430\u0439 \u0441\u0430\u043c\u00bb<\/b><\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0448\u044c \u043c\u044b\u0441\u043b\u0438\u0442\u044c \u0432 \u0442\u0430\u043a\u043e\u043c \u043a\u043b\u044e\u0447\u0435 \u2014 \u0432\u043e\u0442 \u0436\u0435, \u0443 nginx \u0435\u0441\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c geoip, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u00ab\u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0438\u0448\u044c \u0431\u044b\u0441\u0442\u0440\u044b\u0439, \u043d\u043e \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d \u0434\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438\u00bb. \u041d\u043e \u0432\u043e\u0442 \u043d\u0435\u0437\u0430\u0434\u0430\u0447\u0430, \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432 \u0431\u0430\u0437 (MaxMind, Sypex, ipgeobase) \u043e\u043d \u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442.<\/p>\n<p>  \u041f\u0430\u0440\u0430 \u0447\u0430\u0441\u043e\u0432 \u0432 \u043e\u0431\u043d\u0438\u043c\u043a\u0443 \u0441 \u043f\u0438\u0442\u043e\u043d\u043e\u043c \u0438 \u0432\u043e\u0442 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0435\u043f\u043b\u043e\u0445\u043e\u0439 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440, \u0432\u044b\u0446\u0435\u043f\u043b\u044f\u044e\u0449\u0438\u0439 \u0432\u0441\u0451 \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441 \u0441\u0430\u0439\u0442\u0430 ipgeobase.ru.<br \/>  (\u0414\u0430, \u0431\u044b\u043b\u0438 \u0441\u043b\u0443\u0445\u0438, \u0447\u0442\u043e \u0442\u0430\u043c \u0432\u0441\u0435\u0445 \u043f\u043e\u0443\u0432\u043e\u043b\u044c\u043d\u044f\u043b\u0438 \u0443\u0436 \u043f\u043e\u043b\u0433\u043e\u0434\u0430 \u043a\u0430\u043a, \u043d\u043e \u0431\u0430\u0437\u044b \u0438\u0441\u043f\u0440\u0430\u0432\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f, \u0447\u0442\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0440\u0430\u0434\u043e\u0432\u0430\u0442\u044c)<\/p>\n<p>  \u0418 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u043e\u043f\u0430\u0441\u0435\u043d\u0438\u0439, \u043f\u0440\u043e\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u044e \u043a\u043e\u0434 \u043d\u0438\u0436\u0435 (\u0435\u0441\u043b\u0438 \u043d\u0435\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043b\u0438\u0441\u0442\u0430\u0442\u044c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435)  <\/p>\n<h4>\u041a\u043e\u0434<\/h4>\n<div class=\"spoiler\"><b class=\"spoiler_title\">1. \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0431\u0430\u0437\u044b<\/b><\/p>\n<div class=\"spoiler_text\">\u0422\u0443\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e, requests + zipfile:  <\/p>\n<pre><code class=\"python\">archive = requests.get(&quot;http:\/\/ipgeobase.ru\/files\/db\/Main\/geo_files.zip&quot;) if archive.status_code != 200:     error(&quot;IPGeobase no answer: %s&quot; % archive.status_code) extracteddata = ZipFile(StringIO(archive.content)) filelist = extracteddata.namelist() if &quot;cities.txt&quot; not in filelist:     error(&quot;cities.txt not downloaded&quot;) if &quot;cidr_optim.txt&quot; not in filelist:     error(&quot;cidr_optim.txt not downloaded&quot;) <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">2. \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0440\u0435\u0433\u0438\u043e\u043d\u043e\u0432<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">REGIONS = dict(l.decode(&quot;utf8&quot;).rstrip().split(&quot;\\t&quot;)[::-1]                            for l in open(&quot;regions.tsv&quot;).readlines()) <\/code><\/pre>\n<p>  \u0433\u0434\u0435 regions.tsv \u2014 \u044d\u0442\u043e \u0441\u043f\u0438\u0441\u043e\u043a \u0430\u0432\u0442\u043e\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445\/\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u043a\u043e\u0434\u043e\u0432 \u0440\u0435\u0433\u0438\u043e\u043d\u043e\u0432, \u0432\u0438\u0434\u0430:<br \/>  <code> 66  \u0421\u0432\u0435\u0440\u0434\u043b\u043e\u0432\u0441\u043a\u0430\u044f \u043e\u0431\u043b\u0430\u0441\u0442\u044c 77  \u041c\u043e\u0441\u043a\u0432\u0430 78  \u0421\u0430\u043d\u043a\u0442-\u041f\u0435\u0442\u0435\u0440\u0431\u0443\u0440\u0433 <\/code>  <\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">3. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0433\u043e\u0440\u043e\u0434\u043e\u0432<\/b><\/p>\n<div class=\"spoiler_text\">\u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0433\u043e\u0440\u043e\u0434\u0430 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u043d\u0430\u0442\u044c \u0435\u0433\u043e id, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0438 \u043a\u043e\u0434 \u0440\u0435\u0433\u0438\u043e\u043d\u0430:  <\/p>\n<pre><code class=\"python\">CITIES = {} for line in extracteddata.open(&quot;cities.txt&quot;).readlines():     cid, city, region_name, _, _, _ = line.decode(&quot;cp1251&quot;).split(&quot;\\t&quot;)     if region_name in REGIONS:         CITIES[cid] = {'city': b64encode(city.encode(&quot;utf8&quot;)),                        'reg_id': REGIONS[region_name]}         if cid == &quot;1199&quot;:  # Zelenograd fix             CITIES[cid]['reg_id'] = &quot;77&quot; <\/code><\/pre>\n<p>  \u0417\u0430\u043c\u0435\u0447\u0443, \u0447\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u0441\u0440\u0430\u0437\u0443, \u0441 \u043e\u0433\u043b\u044f\u0434\u043a\u043e\u0439 \u043d\u0430 \u0431\u0443\u0434\u0443\u0449\u0435\u0435, utf-8 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0433\u043e\u0440\u043e\u0434\u0430 \u043a\u043e\u0434\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 base64, \u0434\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u043b\u043e\u0433\u0430\u0445 nginx), \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0442\u0440\u0430\u043d\u0441\u043b\u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0435\u0439.  <\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">4. \u0421\u043a\u043b\u0435\u0438\u0432\u0430\u0435\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438 \u0433\u043e\u0440\u043e\u0434\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">for line in extracteddata.open(&quot;cidr_optim.txt&quot;).readlines():     _, _, ip_range, country, cid = line.decode(&quot;cp1251&quot;).rstrip().split(&quot;\\t&quot;)     if country == &quot;RU&quot; and cid in CITIES:             database[&quot;&quot;.join(ip_range.split())] = CITIES[cid] <\/code><\/pre>\n<p>  \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0430 \u043d\u0435 \u0420\u043e\u0441\u0441\u0438\u044f, \u0442\u043e \u0432 ipgeobase \u043d\u0438 \u0440\u0435\u0433\u0438\u043e\u043d\u043e\u0432, \u043d\u0438 \u0433\u043e\u0440\u043e\u0434\u043e\u0432 \u043d\u0435 \u043d\u0430\u0439\u0434\u0451\u0442\u0441\u044f, \u0438 \u043d\u0430\u0448\u0438\u043c \u0437\u0430\u0434\u0430\u0447\u0430\u043c \u0442\u0430\u043a\u0438\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b \u043d\u0435 \u043d\u0443\u0436\u043d\u044b.  <\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">5. \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f geoip \u043c\u043e\u0434\u0443\u043b\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">with open(&quot;region.txt&quot;, &quot;w&quot;) as reg, open(&quot;city.txt&quot;, &quot;w&quot;) as city:     for ip_range in sorted(database):         info = database[ip_range]         city.write(&quot;%s %s;\\n&quot; % (ip_range, info['city']))         reg.write(&quot;%s %s;\\n&quot; % (ip_range, info['reg_id'])) <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 nginx<\/h4>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432 nginx geo \u043c\u043e\u0434\u0443\u043b\u044c <a href=\"http:\/\/nginx.org\/ru\/docs\/http\/ngx_http_geo_module.html\">nginx.org\/ru\/docs\/http\/ngx_http_geo_module.html<\/a>,<br \/>  \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0432 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u0438\u043a\u0438 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u0432 \u0441\u0435\u043a\u0446\u0438\u044e http:  <\/p>\n<pre><code class=\"nginx\">geo $region {     ranges;     include geo\/region.txt; }  geo $city {     ranges;     include geo\/city.txt; } <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0442\u0430\u043a\u0438\u0445 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439 \u0432 nginx \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0434\u0432\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 $city \u0438 $region, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0433\u0434\u0435 \u0443\u0433\u043e\u0434\u043d\u043e:<\/p>\n<ul>\n<li>\u0445\u043e\u0442\u044c \u0432 \u043b\u043e\u0433\u0435:\n<pre><code class=\"nginx\">log_format long '$time_iso8601\\t$msec\\t$host\\t$request_method\\t$uri\\t$args\\t$http_referer\\t$remote_addr\\t$http_user_agent\\t$status\\t$request_time\\t$request_length\\t$upstream_addr\\t$bytes_sent\\t$upstream_response_time\\t$city\\t$region'; <\/code><\/pre>\n<\/li>\n<li>\u0445\u043e\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044f \u0432 \u0445\u0435\u0434\u0435\u0440\u0430\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e:<br \/> \n<pre><code class=\"nginx\">location \/ {     proxy_set_header  X-City     $city;     proxy_set_header  X-Region $region;     proxy_pass   http:\/\/backend; } <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u044d\u0442\u043e\u043c, \u0432 \u043c\u043e\u0434\u0443\u043b\u0435 geo \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u0441\u0435 \u043d\u0435\u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 \u0431\u0443\u0434\u0443\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443, \u0442\u043e \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0445\u0435\u0434\u0435\u0440 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f   <\/li>\n<\/ul>\n<p>  \u041d\u0430 \u0434\u0435\u043b\u0435, \u0442\u0430\u043a\u043e\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e, \u043d\u0435 \u0433\u0440\u0443\u0437\u0438\u0442 nginx, \u0438 \u0437\u0430 \u0441\u0447\u0435\u0442 \u043b\u0435\u0433\u043a\u043e\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437 \u2014 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0442\u043e\u0447\u0435\u043d (\u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0434\u043e\u0432\u0435\u0440\u0438\u044f \u0431\u0430\u0437\u0430\u043c ipgeobase.ru). \u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0447\u0435\u043c, \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u043a\u043e\u043c\u0443-\u0442\u043e \u0435\u0449\u0435. \u0422\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440\u044b \u043a \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0430\u043c \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>  \u043a\u043e\u0434 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0430 <a href=\"https:\/\/github.com\/m-messiah\/ipgeobase_importer\">GitHub<\/a>     \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/264219\/\"> http:\/\/habrahabr.ru\/post\/264219\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u041a\u043e\u0433\u0434\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0435\u0433\u043e \u0433\u043e\u0440\u043e\u0434 \u0438 \u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0439 (\u0430\u0432\u0442\u043e\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439) \u043a\u043e\u0434 \u0440\u0435\u0433\u0438\u043e\u043d\u0430, \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u2014 \u0434\u0430 \u044d\u0442\u043e \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u0432 \u0438\u043d\u0435\u0442\u0435 \u043f\u043e\u043b\u043d\u043e \u0442\u0430\u043a\u0438\u0445 \u0448\u0442\u0443\u043a!<br \/>  \u0410 \u043f\u043e\u0442\u043e\u043c \u0441\u043c\u043e\u0442\u0440\u0438\u0448\u044c: \u043e\u0434\u043d\u0438 \u043f\u043b\u0430\u0442\u043d\u044b\u0435, \u0434\u0440\u0443\u0433\u0438\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u0443 \u0441\u0435\u0431\u044f \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c, \u0442\u0440\u0435\u0442\u044c\u0438 \u043c\u043e\u0436\u043d\u043e, \u043d\u043e \u044d\u0442\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0437\u0430\u0442\u0440\u0430\u0442\u043d\u043e, \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044b\u0435 \u043e \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u0445 \u0420\u0424 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u044e\u0442\u2026<br \/>  \u0418 \u0442\u0443\u0442 \u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u0441\u043f\u0435\u0448\u0438\u0442 \u0431\u043e\u043b\u044c\u043d\u043e\u0439 \u043c\u043e\u0437\u0433 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430 \u0441 \u043d\u0430\u0432\u044f\u0437\u0447\u0438\u0432\u043e\u0439 \u0438\u0434\u0435\u0435\u0439: <b>\u00ab\u041d\u0435\u0442 \u0443 \u0434\u0440\u0443\u0433\u0438\u0445 \u2014 \u0441\u0434\u0435\u043b\u0430\u0439 \u0441\u0430\u043c\u00bb<\/b><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-262972","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/262972","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=262972"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/262972\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=262972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=262972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=262972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}