{"id":35678,"date":"2019-10-31T22:05:43","date_gmt":"2019-10-31T19:05:43","guid":{"rendered":"https:\/\/prohoster.info\/blog\/vypusk-nginx-1-17-1-i-njs-0-3-3\/"},"modified":"2019-10-31T22:05:43","modified_gmt":"2019-10-31T19:05:43","slug":"vypusk-nginx-1-17-1-i-njs-0-3-3","status":"publish","type":"post","link":"https:\/\/prohoster.info\/cs\/blog\/news\/vypusk-nginx-1-17-1-i-njs-0-3-3","title":{"rendered":"Vyd\u00e1n\u00ed nginx 1.17.1 a njs 0.3.3","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><noindex><a rel=\"nofollow\" href=\"http:\/\/mailman.nginx.org\/pipermail\/nginx-announce\/2019\/000243.html\">Dostupn\u00e9<\/a><\/noindex> hlavn\u00ed verze <noindex><a rel=\"nofollow\" href=\"http:\/\/nginx.org\">nginx 1.17.1<\/a><\/noindex>, v jej\u00edm\u017e r\u00e1mci pokra\u010duje rozvoj nov\u00fdch funkc\u00ed (soub\u011b\u017en\u011b je podporov\u00e1na stabiln\u00ed <noindex><a rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=50561\">verze 1.16<\/a><\/noindex> jsou uplat\u0148ov\u00e1ny pouze zm\u011bny t\u00fdkaj\u00edc\u00ed se odstran\u011bn\u00ed z\u00e1va\u017en\u00fdch chyb a zranitelnost\u00ed.<\/p>\n<p>Hlavn\u00ed <noindex><a rel=\"nofollow\" href=\"http:\/\/nginx.org\/en\/CHANGES\">zm\u011bny<\/a><\/noindex>:<\/p>\n<ul>\n<li class=\"l\"> Byla p\u0159id\u00e1na direktiva <noindex><a rel=\"nofollow\" href=\"http:\/\/nginx.org\/en\/docs\/http\/ngx_http_limit_req_module.html#limit_req_dry_run\">limit_req_dry_run<\/a><\/noindex>, kter\u00fd aktivuje zku\u0161ebn\u00ed re\u017eim, ve kter\u00e9m se neuplat\u0148uj\u00ed omezen\u00ed na intenzitu zpracov\u00e1n\u00ed po\u017eadavk\u016f (bez rate limit), ale pokra\u010duje se ve sledov\u00e1n\u00ed po\u010dtu po\u017eadavk\u016f, kter\u00e9 p\u0159ekra\u010duj\u00ed limity, v sd\u00edlen\u00e9 pam\u011bti;\n<li class=\"l\"> P\u0159i pou\u017eit\u00ed v nastaven\u00ed bloku \u201eupstream\u201c p\u0159\u00edkazu \u201e<noindex><a rel=\"nofollow\" href=\"http:\/\/nginx.org\/en\/docs\/http\/ngx_http_upstream_module.html#hash\">hash<\/a><\/noindex>\u201c pro organizaci vyva\u017eov\u00e1n\u00ed z\u00e1t\u011b\u017ee s p\u0159idru\u017een\u00edm klienta k serveru se nyn\u00ed p\u0159i uveden\u00ed pr\u00e1zdn\u00e9 hodnoty kl\u00ed\u010de aktivuje re\u017eim rovnom\u011brn\u00e9ho vyva\u017eov\u00e1n\u00ed (round-robin);\n<li class=\"l\"> Byl odstran\u011bn p\u00e1d pracovn\u00edho procesu p\u0159i pou\u017e\u00edv\u00e1n\u00ed cache v kombinaci s direktivou &#171;image_filter&#187; a p\u0159esm\u011brov\u00e1n\u00edm zpracovatele k\u00f3du chyby 415 pomoc\u00ed direktivy &#171;error_page&#187;;\n<li class=\"l\"> Bylo odstran\u011bno zhroucen\u00ed pracovn\u00edho procesu, kter\u00e9 se projevovalo p\u0159i pou\u017eit\u00ed vestav\u011bn\u00e9ho interpretu Perl.\n<\/ul>\n<p>D\u00e1le lze poznamenat <noindex><a rel=\"nofollow\" href=\"http:\/\/mailman.nginx.org\/pipermail\/nginx-announce\/2019\/000244.html\">vyd\u00e1n\u00ed<\/a><\/noindex> njs 0.3.3, interpretr jazyka JavaScript pro webov\u00fd server nginx. Interpretr njs implementuje standardy ECMAScript a umo\u017e\u0148uje roz\u0161\u00ed\u0159it mo\u017enosti nginx pro zpracov\u00e1n\u00ed po\u017eadavk\u016f pomoc\u00ed skript\u016f v konfiguraci. Skripty mohou b\u00fdt pou\u017eity v konfigura\u010dn\u00edm souboru pro definov\u00e1n\u00ed roz\u0161\u00ed\u0159en\u00e9 logiky zpracov\u00e1n\u00ed po\u017eadavk\u016f, generov\u00e1n\u00ed konfigurace, dynamick\u00e9ho generov\u00e1n\u00ed odpov\u011bdi, modifikace po\u017eadavku\/odpov\u011bdi nebo rychl\u00e9ho vytv\u00e1\u0159en\u00ed z\u00e1stupc\u016f pro \u0159e\u0161en\u00ed probl\u00e9m\u016f v webov\u00fdch aplikac\u00edch. <\/p>\n<p>Ve nov\u00e9 verzi njs byly odstran\u011bny probl\u00e9my odhalen\u00e9 b\u011bhem fuzzingov\u00e9ho testov\u00e1n\u00ed. Byla implementov\u00e1na glob\u00e1ln\u00ed prom\u011bnn\u00e1 &#171;process&#187; s parametry a prom\u011bnn\u00fdmi prost\u0159ed\u00ed aktu\u00e1ln\u00edho procesu (process.pid, process.env.HOME atd.). Zaji\u0161t\u011bna mo\u017enost z\u00e1pisu do v\u0161ech vestav\u011bn\u00fdch vlastnost\u00ed a metod. Byla p\u0159id\u00e1na implementace Array.prototype.fill(). Byla implementov\u00e1na podpora t\u00fdkaj\u00edc\u00ed se navr\u017een\u00e9 syntaxe v ECMAScript 5. <noindex><a rel=\"nofollow\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Functions\/get\">getter<\/a><\/noindex> a <noindex><a rel=\"nofollow\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Functions\/set\">setter<\/a><\/noindex> pro vazbu vlastnosti objektu na funkci, nap\u0159\u00edklad:<\/p>\n<p>   var o = {a:2};<br \/>\n   Object.defineProperty(o, &#8216;b&#8217;, {get:function(){return 2*this.a}});<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"link\"><\/a><\/noindex><\/p>\n<p>Zdroj: <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=50967\">opennet.ru<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0414\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432\u044b\u043f\u0443\u0441\u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0438 nginx 1.17.1, \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u043d\u043e\u0432\u044b\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 (\u0432 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u043e\u0439 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0435 1.16 \u0432\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0441\u0435\u0440\u044c\u0451\u0437\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f: \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 limit_req_dry_run, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u0440\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0431\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 (\u0431\u0435\u0437 rate limit), \u043d\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442\u0441\u044f \u0443\u0447\u0451\u0442 \u0432\u044b\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-35678","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0414\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432\u044b\u043f\u0443\u0441\u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0438 nginx.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/cs\/blog\/news\/vypusk-nginx-1-17-1-i-njs-0-3-3\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"cs_CZ\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0412\u044b\u043f\u0443\u0441\u043a nginx 1.17.1 \u0438 njs 0.3.3 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0414\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432\u044b\u043f\u0443\u0441\u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0438 nginx.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/cs\/blog\/news\/vypusk-nginx-1-17-1-i-njs-0-3-3\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T19:05:43+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T19:05:43+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Uvoln\u011bn\u00ed nginx 1.17.1 a njs 0.3.3 | ProHoster","description":"Verze hlavn\u00ed v\u011btve nginx je k dispozici.","canonical_url":"https:\/\/prohoster.info\/cs\/blog\/news\/vypusk-nginx-1-17-1-i-njs-0-3-3","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"cs_CZ","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0412\u044b\u043f\u0443\u0441\u043a nginx 1.17.1 \u0438 njs 0.3.3 | ProHoster","og:description":"\u0414\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432\u044b\u043f\u0443\u0441\u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0438 nginx.","og:url":"https:\/\/prohoster.info\/cs\/blog\/news\/vypusk-nginx-1-17-1-i-njs-0-3-3","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T19:05:43+00:00","article:modified_time":"2019-10-31T19:05:43+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"35678","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-22 00:20:20","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 01:58:28","updated":"2026-01-22 00:20:20","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/posts\/35678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/comments?post=35678"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/posts\/35678\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/media?parent=35678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/categories?post=35678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/tags?post=35678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}