Signed-off-by: Lin Jiaxin ljx.joe@qq.com --- container/result-webdav/nginx.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
diff --git a/container/result-webdav/nginx.conf b/container/result-webdav/nginx.conf index cc21926..e0e0ee2 100644 --- a/container/result-webdav/nginx.conf +++ b/container/result-webdav/nginx.conf @@ -27,6 +27,22 @@ http { dav_methods PUT MKCOL; dav_access user:rw group:rw all:rw;
+ set $config_upload_condition "false"; + if ( $uri ~ "^/cci/build-config.*" ) + { + set $config_upload_condition "true"; + } + + if ( -e $request_filename ) + { + set $config_upload_condition "${config_upload_condition}+true"; + } + + if ( $config_upload_condition = "true+true" ) + { + return 200; + } + access_by_lua_block { function split(str, reps) local resultstrlist = {}
pls ignore
On Fri, Mar 12, 2021 at 05:12:36PM +0800, Lin Jiaxin wrote:
Signed-off-by: Lin Jiaxin ljx.joe@qq.com
container/result-webdav/nginx.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
diff --git a/container/result-webdav/nginx.conf b/container/result-webdav/nginx.conf index cc21926..e0e0ee2 100644 --- a/container/result-webdav/nginx.conf +++ b/container/result-webdav/nginx.conf @@ -27,6 +27,22 @@ http { dav_methods PUT MKCOL; dav_access user:rw group:rw all:rw;
set $config_upload_condition "false";
if ( $uri ~ "^/cci/build-config.*" )
{
set $config_upload_condition "true";
}
if ( -e $request_filename )
{
set $config_upload_condition "${config_upload_condition}+true";
}
if ( $config_upload_condition = "true+true" )
{
return 200;
}
- access_by_lua_block { function split(str, reps) local resultstrlist = {}
-- 2.23.0