diff --git a/plugins/docker/index.html b/plugins/docker/index.html index ffcf912a6..fd9647867 100755 --- a/plugins/docker/index.html +++ b/plugins/docker/index.html @@ -40,6 +40,7 @@

自启动

容器列表

镜像列表

+

镜像导出

IP地址池

仓库

diff --git a/plugins/docker/js/docker.js b/plugins/docker/js/docker.js index 2e978ac3e..8c13b551a 100755 --- a/plugins/docker/js/docker.js +++ b/plugins/docker/js/docker.js @@ -634,6 +634,70 @@ function dockerImageList(){ dockerImageListRender(); } + +function dockerImageOutputRender(){ + dPost('image_list', '', {}, function(rdata){ + var rdata = $.parseJSON(rdata.data); + // console.log(rdata); + if (!rdata.status){ + layer.msg(rdata.msg,{icon:2,time:2000}); + return; + } + + var list = ''; + var rlist = rdata.data; + + for (var i = 0; i < rlist.length; i++) { + + var tag = rlist[i]['RepoTags'].split(":")[1]; + + var license = 'null'; + var desc = 'null'; + if (rlist[i]['Labels'] == null){ + license = 'free'; + } + + var op = ''; + op += '拉取 | '; + op += '删除'; + + list += ''; + list += ''+rlist[i]['RepoTags']+''; + list += ''+tag+''; + list += ''+toSize(rlist[i]['Size'])+''; + list += ''+license+''; + list += ''+desc+''; + list += ''+op+''; + list += ''; + } + + $('#con_list tbody').html(list); + }); +} + +function dockerImageOutput(){ + var con = '
\ + \ + \ +
\ +
\ + \ + \ + \ + \ + \ + \ +
名称大小时间操作
\ +
\ +
\ +
\ +
'; + + $(".soft-man-con").html(con); + + dockerImageOutputRender(); +} + function deleteIpList(address){ safeMessage('删除IP','你将删除从IP地址池['+address+'],确定?',function(){ dPost('docker_del_ip','', {address:address},function(rdata){ diff --git a/plugins/openresty/conf/nginx.conf b/plugins/openresty/conf/nginx.conf index 9d00028e9..0f9dc90d3 100644 --- a/plugins/openresty/conf/nginx.conf +++ b/plugins/openresty/conf/nginx.conf @@ -60,6 +60,16 @@ http limit_conn_zone $binary_remote_addr zone=perip:10m; limit_conn_zone $server_name zone=perserver:10m; + proxy_buffering on; + proxy_buffer_size 4k; + proxy_buffers 512 4k; + proxy_busy_buffers_size 64k; + proxy_cache_path {$SERVER_PATH}/openresty/nginx/proxy_cache_temp levels=1:2 keys_zone=mw_cache:512m inactive=5m max_size=2g use_temp_path=off; + #proxy timeout + proxy_connect_timeout 3s; + proxy_read_timeout 5s; + proxy_send_timeout 5s; + server_tokens off; access_log off;