{"id":225313,"date":"2014-06-05T13:14:05","date_gmt":"2014-06-05T09:14:05","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=225313"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=225313","title":{"rendered":"<span class=\"post_title\">\u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f Ruby \u0432 Nginx<\/span>"},"content":{"rendered":"<div class=\"content html_format\">     \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/3ef\/1d4\/f86\/3ef1d4f8653041ab3baa2c4a1f419065.png\"\/><br \/>  \u0423\u0436\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u0430\u0432\u043d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u0441\u0435\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u043a\u0430 Nginx + Lua, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0437\u0434\u0435\u0441\u044c \u0431\u044b\u043b \u0440\u044f\u0434 \u0441\u0442\u0430\u0442\u0435\u0439. \u041d\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0433\u043e\u0434 \u043d\u0430\u0437\u0430\u0434 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f, \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e Ruby \u0432 Nginx.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>MRuby<\/h4>\n<p>  \u0414\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d \u043d\u0435 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 Ruby, \u0430 \u0435\u0433\u043e \u043f\u043e\u0434\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043e \u0434\u043b\u044f \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u044f \u0432 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u0442\u0434. \u0418\u043c\u0435\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f, \u043d\u043e \u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 Ruby. \u041f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <a href=\"http:\/\/mruby.org\">MRuby<\/a>. \u041d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0438\u043c\u0435\u0435\u0442 \u0443\u0436\u0435 \u0432\u0435\u0440\u0441\u0438\u044e 1.0.0, \u0442.\u0435. \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u043c. <br \/>  MRuby \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0432 \u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432 \u0431\u0430\u0439\u0442\u043a\u043e\u0434 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0443\u0436\u0435 \u0435\u0433\u043e, \u0447\u0442\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438.<br \/>  \u0422.\u043a. \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0430\u0439\u043b\u044b, \u0442\u043e \u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 gem-\u044b \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0434\u043b\u044f \u043d\u0435\u0433\u043e. \u0414\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0432\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u043a\u0430\u043a C \u043a\u043e\u0434, \u0442\u0430\u043a \u0438 Ruby \u043c\u0435\u0441\u0442\u0430\u043c\u0438. \u0414\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0441\u0430\u043c\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0435\u0435 \u043d\u0435\u043e\u0442\u044a\u0435\u043c\u043b\u0435\u043c\u043e\u0439 \u0447\u0430\u0441\u0442\u044c\u044e. \u0418\u043c\u0435\u044e\u0442\u0441\u044f \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0438 \u043a \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c \u0431\u0430\u0437\u0430\u043c \u0434\u0430\u043d\u043d\u044b\u0445, \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438, \u0441\u0435\u0442\u044c\u044e \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435. \u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 \u0441\u0430\u0439\u0442\u0435.<br \/>  \u0422\u0430\u043a\u0436\u0435 \u0442\u0430\u043c \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0443\u043b\u044c, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u0434\u0432\u0438\u0436\u043e\u043a \u0432 Nginx, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b.<\/p>\n<h4>ngx_mruby<\/h4>\n<p>  \u0418\u0442\u0430\u043a, \u0437\u043d\u0430\u043a\u043e\u043c\u044c\u0442\u0435\u0441\u044c: <a href=\"http:\/\/ngx.mruby.org\/\">ngx_mruby<\/a>. \u041c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f ruby \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043a nginx. \u0418\u043c\u0435\u0435\u0442 \u0441\u0445\u043e\u0436\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0441 Lua \u0432\u0435\u0440\u0441\u0438\u0435\u0439. \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u044d\u0442\u0430\u043f\u0430\u0445 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430.<\/p>\n<p>  \u041c\u043e\u0434\u0443\u043b\u044c \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f. \u041a\u0442\u043e \u043d\u0435 \u0445\u043e\u0447\u0435\u0442 \u0437\u0430\u043c\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043e \u0441\u0431\u043e\u0440\u043a\u043e\u0439, \u043c\u043e\u0433\u0443\u0442 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0430\u043a\u0435\u0442:<br \/>  <a href=\"http:\/\/mruby.ajieks.ru\/st\/nginx_1.4.4-1~mruby~precise_amd64.deb\">http:\/\/mruby.ajieks.ru\/st\/nginx_1.4.4-1~mruby~precise_amd64.deb<\/a><br \/>  MRuby \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438:  <\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/iij\/mruby-io\">github.com\/iij\/mruby-io<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/iij\/mruby-env\">github.com\/iij\/mruby-env<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/iij\/mruby-dir\">github.com\/iij\/mruby-dir<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/iij\/mruby-process\">github.com\/iij\/mruby-process<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/iij\/mruby-pack\">github.com\/iij\/mruby-pack<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/iij\/mruby-digest\">github.com\/iij\/mruby-digest<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/mattn\/mruby-json\">github.com\/mattn\/mruby-json<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/matsumoto-r\/mruby-redis\">github.com\/matsumoto-r\/mruby-redis<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/matsumoto-r\/mruby-vedis\">github.com\/matsumoto-r\/mruby-vedis<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/matsumoto-r\/mruby-sleep\">github.com\/matsumoto-r\/mruby-sleep<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/matsumoto-r\/mruby-userdata\">github.com\/matsumoto-r\/mruby-userdata<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/matsumoto-r\/mruby-uname\">github.com\/matsumoto-r\/mruby-uname<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/mattn\/mruby-onig-regexp\">github.com\/mattn\/mruby-onig-regexp<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/matsumoto-r\/mruby-discount\">github.com\/matsumoto-r\/mruby-discount<\/a><\/li>\n<\/ul>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0435\u0441\u0442\u044c \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0442\u043e \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0432 API \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f, \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430\u0440\u0443\u0436\u0443. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0431\u0432\u044f\u0437\u043a\u0443 \u0432\u043e\u043a\u0440\u0443\u0433 nginx API.<\/p>\n<p>  \u0410\u0432\u0442\u043e\u0440 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u0433\u0440\u0430\u0444\u0438\u043a \u0441 \u0442\u0435\u0441\u0442\u0430\u043c\u0438, \u043d\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0442\u0430\u043a \u0438 \u043d\u0435 \u043d\u0430\u0448\u0435\u043b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0443 \u0435\u0433\u043e \u0434\u043b\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b:<br \/>  <img decoding=\"async\" src=\"https:\/\/github.com\/matsumoto-r\/mod_mruby\/raw\/master\/images\/performance_20140301.png\" alt=\"image\"\/><\/p>\n<h4>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<\/h4>\n<p>  \u0418\u0442\u0430\u043a, \u0441\u0435\u0440\u0432\u0435\u0440 \u0443 \u043d\u0430\u0441 \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d. \u0412\u0441\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u0443\u0435\u0442, \u0441\u0442\u0430\u0442\u0438\u043a\u0430 \u043e\u0442\u0434\u0430\u0435\u0442\u0441\u044f. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043a \u044d\u0442\u043e\u043c\u0443 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0438.<br \/>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0437\u0430\u0434\u0430\u0447\u0443 \u043f\u043e \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0443 Markdown \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \u0438 \u043e\u0442\u0434\u0430\u0447\u0438 \u0435\u0435 \u0432 HTML \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0410 \u0442\u0430\u043a\u0436\u0435 \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0442\u0440\u043e\u043a \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u0445 \u043d\u0430 Ruby.<br \/>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u043d \u043a\u043b\u043e\u043d \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f sinatra \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d nginx \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<h5>Markdown<\/h5>\n<p>  \u0414\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u043c \u0432 \u0441\u0431\u043e\u0440\u043a\u0443 \u043c\u043e\u0434\u0443\u043b\u0435\u043c mruby-discount. \u041e\u043d \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u043e\u0439. \u0412 \u043e\u0441\u043d\u043e\u0432\u0435 \u043b\u0435\u0436\u0438\u0442 \u043e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043d\u0430 C, \u043f\u043e\u0442\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0434\u0443\u043c\u0430\u044e, \u043e\u0441\u043e\u0431\u043e \u0441\u0442\u043e\u044f\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442.<br \/>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0448\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 \u0434\u0438\u0441\u043a\u0430, \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0438 \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e.  <\/p>\n<pre><code class=\"ruby\">r = Nginx::Request.new  m = Discount.new(&quot;\/st\/style.css&quot;, &quot;README&quot;)  filename = r.filename filename = File.join(filename, 'README.md') if filename.end_with?('\/')  markdown = File.exists?(filename) ? File.read(filename) : '' Nginx.rputs m.header Nginx.rputs m.md2html(markdown) Nginx.rputs m.footer <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0432\u0441\u044e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0437\u0430\u043f\u0440\u043e\u0448\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b, \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438, URL, URI \u0438 \u0442.\u0434.<br \/>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043a\u043b\u0430\u0441\u0441\u0430 Discount, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u0444\u0430\u0439\u043b \u0441\u0442\u0438\u043b\u044f \u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.<br \/>  \u0414\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 404 \u043e\u0448\u0438\u0431\u043a\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0444\u0430\u0439\u043b\u0430 \u043d\u0435\u0442\u0443, \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 200 \u043a\u043e\u0434 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430.<br \/>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u044d\u0442\u043e  <\/p>\n<pre><code class=\"nginx\">    location ~ \\.md$ {         add_header Content-Type text\/html;         mruby_content_handler &quot;\/opt\/app\/parse_md.rb&quot; cache;     } <\/code><\/pre>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<br \/>  <a href=\"http:\/\/mruby.ajieks.ru\/sinatra\/\">mruby.ajieks.ru\/sinatra\/<\/a><br \/>  <a href=\"http:\/\/mruby.ajieks.ru\/sinatra\/README.ru.md\">mruby.ajieks.ru\/sinatra\/README.ru.md<\/a><\/p>\n<h5>\u0424\u0430\u0439\u043b\u044b Ruby<\/h5>\n<p>  \u041f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044e, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0440\u0430\u0441\u043a\u0440\u0430\u0441\u043a\u0443 \u043a\u043e\u0434\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u043e\u0433\u0434\u0430-\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 <a href=\"https:\/\/github.com\/fuCtor\/chalks\">https:\/\/github.com\/fuCtor\/chalks<\/a>. \u041e\u0434\u043d\u0430\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0445 \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u0439 \u0432 \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b. \u041a\u043e\u0434, \u0432\u0440\u043e\u0434\u0435, \u0440\u0430\u0431\u043e\u0442\u0430\u043b, \u043d\u043e \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043f\u0430\u0434\u0430\u043b \u0441 Segmentation fault. \u041f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u043d\u0438\u0435 \u0431\u044b\u043b\u043e \u043d\u0430 \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0443 \u043f\u0430\u043c\u044f\u0442\u0438 \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u043c\u043e\u0439, \u043d\u043e \u0434\u0430\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u044f \u0435\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043d\u0435 \u043f\u0440\u043e\u043f\u0430\u043b\u0430. \u041f\u043e\u0441\u043b\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0441 \u0440\u0430\u0441\u043a\u0440\u0430\u0441\u043a\u043e\u0439, \u0432\u0441\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u043d\u043e \u043d\u0435 \u0442\u0430\u043a \u043a\u0440\u0430\u0441\u0438\u0432\u043e, \u043a\u0430\u043a \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"ruby\">module CGI TABLE_FOR_ESCAPE_HTML__ = {&quot;&&quot;=&gt;&quot;&amp;&quot;, '&quot;'=&gt;&quot;&quot;&quot;, &quot;&lt;&quot;=&gt;&quot;&lt;&quot;, &quot;&gt;&quot;=&gt;&quot;&gt;&quot;} def self.escapeHTML(string)   string.gsub(\/[&\\&quot;&lt;&gt;]\/) do |ch|   TABLE_FOR_ESCAPE_HTML__[ch]   end end end  class String   def ord     self.bytes[0]   end end  class Chalk    COMMENT_START_CHARS = {       ruby: \/#.\/,       cpp: \/\\\/\\*|\\\/\\\/\/,       c: \/\\\/\\\/\/   }   COMMENT_END_CHARS = {       cpp: \/\\*\\\/|.\\n\/,       ruby: \/.\\n\/,       c: \/.\\n\/,   }    STRING_SEP = %w(' &quot;)   SEPARATORS = &quot; @(){}[],.:;\\&quot;\\'`&lt;&gt;=+-*\/\\t\\n\\\\?|&#&quot;   SEPARATORS_RX = \/[@\\(\\)\\{\\}\\[\\],\\.\\:;&quot;'`\\&lt;\\&gt;=\\+\\-\\*\\\/\\t\\n\\\\\\?\\|\\&#]\/    def initialize(file)     @filename = file     @file = File.new(file)     @rnd = Random.new(file.hash)     @tokens = {}     reset   end    def parse &block     reset()      @file.read.each_char do |char|       @last_couple = ((@last_couple.size &lt; 2) ? @last_couple : @last_couple[1]) + char        case(@state)         when :source           if start_comment?(@last_couple)             @state = :comment           elsif STRING_SEP.include?(char)               @string_started_with = char               @state = :string           else             process_entity(&block) if (@entity.length == 1 && SEPARATORS.index(@entity))  || SEPARATORS.index(char)           end          when :comment           process_entity(:source, &block) if end_comment?(@last_couple)          when :string           if (STRING_SEP.include?(char) && @string_started_with == char)             @entity += char             process_entity(:source, &block)             char = ''           elsif char == '\\\\'             @state = :escaped_char           else           end         when :escaped_char           @state = :string       end       @entity += char     end   end    def to_html(&block)     html = ''     if block       block.call( '&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;pre&gt;' )     else       html = '&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;pre&gt;'     end     line_n = 1     @file.readlines.each do       if block         block.call( &quot;&lt;a href='#'&gt;&lt;b&gt;#{line_n}&lt;\/b&gt;&lt;\/a&gt;\\n&quot; )       else         html += &quot;&lt;a href='#'&gt;&lt;b&gt;#{line_n}&lt;\/b&gt;&lt;\/a&gt;\\n&quot;       end       line_n += 1     end      @file = File.open(@filename)     if block       block.call( '&lt;\/pre&gt;&lt;\/td&gt;&lt;td&gt;&lt;pre&gt;' )     else       html += '&lt;\/pre&gt;&lt;\/td&gt;&lt;td&gt;&lt;pre&gt;'     end     parse do |entity, type|       entity = entity.gsub(&quot;\\t&quot;, '  ')       if block         block.call( entity )         #block.call(highlight( entity , type))       else         html += entity         #html += highlight( entity , type)       end     end      if block       block.call( '&lt;\/pre&gt;&lt;td&gt;&lt;\/tr&gt;&lt;\/table&gt;' )     else       html + '&lt;\/pre&gt;&lt;td&gt;&lt;\/tr&gt;&lt;\/table&gt;'     end   end    def language     @language ||= case(@file.path.to_s.split('.').last.to_sym)       when :rb         :ruby       when :cpp, :hpp         :cpp       when  :c, :h         :c       when :py         :python       else         @file.path.to_s.split('.').last.to_s     end   end    private     def process_entity(new_state = nil, &block)     block.call @entity, @state if block     @entity = ''     @state = new_state if new_state   end    def reset     @file = File.open(@filename) if @file     @state = :source     @string_started_with = ''     @entity = ''     @last_couple = ''   end    def color(entity)     entity = entity.strip      entity.gsub! SEPARATORS_RX, ''      token = ''     return token if entity.empty?     #return token if token = @tokens[entity]      return '' if entity[0].ord &gt;= 128      rgb = [ @rnd.rand(150) + 100, @rnd.rand(150) + 100, @rnd.rand(150) + 100 ]      token = String.sprintf(&quot;#%02X%02X%02X&quot;, rgb[0], rgb[1], rgb[2])     #token = &quot;#%02X%02X%02X&quot; % rgb     #@tokens[entity] = token     return token   end    def highlight(entity, type)     esc_entity = CGI.escapeHTML( entity )     case type       when :string, :comment         &quot;&lt;span class='#{type}'&gt;#{esc_entity}&lt;\/span&gt;&quot;       else          rgb = color(entity)         if rgb.empty?           esc_entity         else           &quot;&lt;span rel='t#{rgb.hash}' style='color: #{rgb}' &gt;#{esc_entity}&lt;\/span&gt;&quot;         end      end   end    def start_comment?(char)     rx = COMMENT_START_CHARS[language]     char.match rx if rx   end    def end_comment?(char)     rx = COMMENT_END_CHARS[language]     char.match rx if rx   end end <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0418 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0447\u0442\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0438 \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044e:  <\/p>\n<pre><code class=\"ruby\">r = Nginx::Request.new  Nginx.rputs '&lt;html&gt;&lt;link rel=&quot;stylesheet&quot; href=&quot;\/st\/code.css&quot; type=&quot;text\/css&quot; \/&gt;&lt;body&gt;' begin     ch = Chalk.new(r.filename)     data = ch.to_html     Nginx.rputs data  rescue =&gt; e   Nginx.rputs e.message end  Nginx.rputs '&lt;\/body&gt;&lt;\/html&gt;' <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u0441\u0435. \u0422.\u043a. \u043a\u043b\u0430\u0441\u0441 Chalk \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e, \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u043c \u0435\u0433\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435:<br \/>  mruby_init &#8216;\/opt\/app\/init.rb&#8217;;<br \/>  \u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434 server \u0441\u0435\u043a\u0446\u0438\u0435\u0439 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445. \u0414\u0430\u043b\u0435\u0435 \u0443\u0436\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0448 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a:  <\/p>\n<pre><code class=\"nginx\">  location ~ \\.rb$ {         add_header Content-Type text\/html;         mruby_content_handler &quot;\/opt\/app\/parse_code.rb&quot; cache;    } <\/code><\/pre>\n<p>  \u0412\u0441\u0435, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: <a href=\"http:\/\/mruby.ajieks.ru\/sinatra\/lib\/sinatra\/main.rb\">mruby.ajieks.ru\/sinatra\/lib\/sinatra\/main.rb<\/a><\/p>\n<h4>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044e, \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0438\u0437 \u044f\u0437\u044b\u043a\u043e\u0432. \u0413\u043e\u0442\u043e\u0432 \u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0431\u043e\u0435\u0432\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445, \u043d\u0435 \u0437\u043d\u0430\u044e. \u041f\u043e\u043a\u0430 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b, \u0431\u044b\u0432\u0430\u043b\u0438 \u0437\u0430\u0432\u0438\u0441\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u043e \u0435\u0441\u0442\u044c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043a\u0440\u0438\u0432\u0438\u0437\u043d\u044b \u0440\u0443\u043a, \u043b\u0438\u0431\u043e \u0432\u0441\u0435 \u0436\u0435 \u043d\u0435 \u0432\u0441\u0435 \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043e. \u0411\u0443\u0434\u0443 \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430. <\/p>\n<p>  \u0416\u0435\u043b\u0430\u044e\u0449\u0438\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u0433\u043e\u043d\u044f\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c \u0432\u044b\u0448\u0435.<br \/>  \u0421\u0435\u0440\u0432\u0435\u0440 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442 \u043d\u0430 DigitalOcean \u043d\u0430 \u0441\u0430\u043c\u043e\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, Ubuntu 12.04 x64. \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 2, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 1024. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043d\u0435 \u0434\u0435\u043b\u0430\u043b\u043e\u0441\u044c. \u041d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u0437\u0430\u0432\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 nginx \u043a\u0430\u0436\u0434\u044b\u0435 10 \u043c\u0438\u043d\u0443\u0442.      \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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\/225313\/\"> http:\/\/habrahabr.ru\/post\/225313\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">     \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/3ef\/1d4\/f86\/3ef1d4f8653041ab3baa2c4a1f419065.png\"\/><br \/>  \u0423\u0436\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u0430\u0432\u043d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u0441\u0435\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u043a\u0430 Nginx + Lua, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0437\u0434\u0435\u0441\u044c \u0431\u044b\u043b \u0440\u044f\u0434 \u0441\u0442\u0430\u0442\u0435\u0439. \u041d\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0433\u043e\u0434 \u043d\u0430\u0437\u0430\u0434 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f, \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e Ruby \u0432 Nginx.  <\/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-225313","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/225313","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=225313"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/225313\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=225313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=225313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=225313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}