Skip to content

Commit

Permalink
Исправил ошибку, увеличил максимальный размер тела запроса
Browse files Browse the repository at this point in the history
  • Loading branch information
ovcharenko-di committed Dec 20, 2020
1 parent 72f037a commit b811d10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conf.d/crserver-filter.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ server {

# значения этих параметров ОБЯЗАТЕЛЬНО должны быть одинаковыми
# https://github.com/openresty/lua-nginx-module#lua_need_request_body
client_body_buffer_size 200M;
client_max_body_size 200M;
client_body_buffer_size 2048m;
client_max_body_size 2048m;

rewrite_by_lua_block {

Expand All @@ -34,7 +34,7 @@ server {

local commentPattern = [[<crs:comment>(.*)</crs:comment>]]
local message
if req:match([[DevDepot_commitObjects]] ~= nil) then
if req:match([[DevDepot_commitObjects]]) ~= nil then
message = req:match(commentPattern) -- комментарий хранилища
elseif req:match([[DevDepot_changeVersion]]) ~= nil then
local newVersion = req:match([[<crs:newVersion>(.*)</crs:newVersion>]])
Expand Down

0 comments on commit b811d10

Please sign in to comment.