tag:github.com,2008:https://github.com/tarantool/nginx_upstream_module/releasesRelease notes from nginx_upstream_module2019-04-16T13:17:54Ztag:github.com,2008:Repository/34047258/v2.7.12019-04-16T13:51:58Zv2.7.1<h2>Bugfixes</h2>
<ul>
<li>Fixed tnt_pass_http_request unescape option (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="433254698" data-permission-text="Title is private" data-url="https://github.com/tarantool/nginx_upstream_module/issues/120" data-hovercard-type="issue" data-hovercard-url="/tarantool/nginx_upstream_module/issues/120/hovercard" href="https://github.com/tarantool/nginx_upstream_module/issues/120">#120</a>)</li>
<li>Fixed tnt_http_rest_methods documentation (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="304597819" data-permission-text="Title is private" data-url="https://github.com/tarantool/nginx_upstream_module/issues/115" data-hovercard-type="issue" data-hovercard-url="/tarantool/nginx_upstream_module/issues/115/hovercard" href="https://github.com/tarantool/nginx_upstream_module/issues/115">#115</a>)</li>
</ul>dokshinatag:github.com,2008:Repository/34047258/v2.72018-07-23T21:07:09Zv2.7<h2>Features</h2>
<p>The version has a new option <code>pass_subrequest_uri</code> for <code>tnt_pass_http_request</code> config directive.</p>
<p>Previous implementation unconditionally passes unparsed uri, recieved from client. However it can be changed due to several internal redirects, such as <code>rewrite</code>, <code>X-Accel-Redirect</code>, etc. If the new option for <code>tnt_pass_http_request</code> is set, the actual subrequest uri will be passed to tarantool upstream.</p>
<p>Default behaviour coincides with the old one for saving backward compatibility.</p>
<p>You can find more information and examples into the <a href="https://github.com/tarantool/nginx_upstream_module/blob/master/README.md#tnt_pass_http_request">README</a></p>igormunkintag:github.com,2008:Repository/34047258/v2.6-rc32018-01-10T08:17:17Zv2.6-rc3<h2>Features</h2>
<p>The version has a new features, it called 'format' or tarantool protocol over REST.</p>
<p>Tarantool stores data in <a href="https://tarantool.org/en/doc/1.7/book/box/data_model.html#tuple" rel="nofollow">tuples</a>. A tuple is a list of elements. Each element is a value or an object, and each element should have a strong type. The tuple format is called <a href="https://en.wikipedia.org/wiki/MessagePack" rel="nofollow">MsgPack</a>, it's like JSON in a binary format.</p>
<p>The main goal of Format (see [FMT] above) is to enable conversion between<br>
a query string and MsgPack without losing type information or value.</p>
<p>The syntax is: <code>{QUERY_ARG_NAME}=%{FMT_TYPE}</code></p>
<p>Please look carefully for yours url encoding!</p>
<p>You can find more information into the README.md.</p>
<p>A related issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="183805144" data-permission-text="Title is private" data-url="https://github.com/tarantool/nginx_upstream_module/issues/66" data-hovercard-type="issue" data-hovercard-url="/tarantool/nginx_upstream_module/issues/66/hovercard" href="https://github.com/tarantool/nginx_upstream_module/issues/66">#66</a></p>
<h2>Bugs fixed</h2>
<p><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="253506490" data-permission-text="Title is private" data-url="https://github.com/tarantool/nginx_upstream_module/issues/98" data-hovercard-type="issue" data-hovercard-url="/tarantool/nginx_upstream_module/issues/98/hovercard" href="https://github.com/tarantool/nginx_upstream_module/issues/98">#98</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="275345305" data-permission-text="Title is private" data-url="https://github.com/tarantool/nginx_upstream_module/issues/105" data-hovercard-type="issue" data-hovercard-url="/tarantool/nginx_upstream_module/issues/105/hovercard" href="https://github.com/tarantool/nginx_upstream_module/issues/105">#105</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="283524051" data-permission-text="Title is private" data-url="https://github.com/tarantool/nginx_upstream_module/issues/108" data-hovercard-type="issue" data-hovercard-url="/tarantool/nginx_upstream_module/issues/108/hovercard" href="https://github.com/tarantool/nginx_upstream_module/issues/108">#108</a></p>dedoktag:github.com,2008:Repository/34047258/v2.5-stable2017-10-06T21:21:31Zv2.5-stable<h2>Features</h2>
<ol>
<li>tnt_multireturn_skip_count has returned, for getting details see related issue (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="253422625" data-permission-text="Title is private" data-url="https://github.com/tarantool/nginx_upstream_module/issues/97" data-hovercard-type="issue" data-hovercard-url="/tarantool/nginx_upstream_module/issues/97/hovercard" href="https://github.com/tarantool/nginx_upstream_module/issues/97">#97</a>)</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="syntax: tnt_multireturn_skip_count [0|1|2]
default: 0
context: http, server, location
Module will skip one or more multireturn parts when this option is > 0 When it is set to 0"><pre class="notranslate"><code>syntax: tnt_multireturn_skip_count [0|1|2]
default: 0
context: http, server, location
Module will skip one or more multireturn parts when this option is > 0 When it is set to 0
</code></pre></div>
<ol start="2">
<li>tnt_method can work with nginx's variables, here is a short example:</li>
</ol>
<div class="highlight highlight-source-nginx notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="location ~ /api/([-_a-zA-Z0-9/]+)/ {
tnt_method $1;
tnt_pass backend:3113;
}"><pre><span class="pl-k">location</span> ~ <span class="pl-sr">/api/([-_a-zA-Z0-9/]+)/ </span>{
<span class="pl-k">tnt_method</span> <span class="pl-smi">$1</span>;
<span class="pl-k">tnt_pass</span> backend:3113;
}</pre></div>
<ol start="3">
<li>
<p>tnt_pass_http_request has a new option, it's parse_urlencoded. This option make nginx parse incoming x-www-urlencoded data into the Lua table. Here is details: <a href="https://github.com/tarantool/nginx_upstream_module#tnt_pass_http_request">https://github.com/tarantool/nginx_upstream_module#tnt_pass_http_request</a></p>
</li>
<li>
<p>tnt_set_header, it's a new option. it allows redefining or appending fields to the request header passed to the tarantool proxied server. The value can contain text, variables, and their combinations.</p>
</li>
</ol>dedoktag:github.com,2008:Repository/34047258/v2.5-rc22017-09-21T20:32:26Zv2.5-rc2<h2>Features</h2>
<ul>
<li>tnt_multireturn_skip_count has returned, for getting details see related issue (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="253422625" data-permission-text="Title is private" data-url="https://github.com/tarantool/nginx_upstream_module/issues/97" data-hovercard-type="issue" data-hovercard-url="/tarantool/nginx_upstream_module/issues/97/hovercard" href="https://github.com/tarantool/nginx_upstream_module/issues/97">#97</a>)</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="syntax: tnt_multireturn_skip_count [0|1|2]
default: 0
context: http, server, location
Module will skip one or more multireturn parts when this option is > 0 When it is set to 0"><pre class="notranslate"><code>syntax: tnt_multireturn_skip_count [0|1|2]
default: 0
context: http, server, location
Module will skip one or more multireturn parts when this option is > 0 When it is set to 0
</code></pre></div>dedoktag:github.com,2008:Repository/34047258/v2.5-rc2-docker2017-09-18T17:14:31Zv2.5-rc2-docker<p>Add Docker tag v2.5-r2</p>bigbestag:github.com,2008:Repository/34047258/v2.5-rc1-docker2017-09-18T17:11:12Zv2.5-rc1-docker<p>Add Docker tag v2.5-rc1</p>bigbestag:github.com,2008:Repository/34047258/v2.4.7-docker2017-09-18T13:54:28Zv2.4.7-docker<p>Add Docker tag v2.4.7 to represent current latest for compatibility</p>opomuctag:github.com,2008:Repository/34047258/v2.4.6-docker2017-09-18T12:44:19Zv2.4.6-docker<p>Add Docker tag v2.4.6</p>opomuctag:github.com,2008:Repository/34047258/v2.5-r22017-08-28T21:13:54Zv2.5-r2<p>Update README.md</p>dedok