更新 Openresty 版本到 1.21.4.3-3-1-focal (#1539)

* feat: 更新 Openresty 版本到 1.21.4.3-3-1-focal

* feat: 更新配置文件

* feat: 网站监控增加日志保存天数
This commit is contained in:
zhengkunwang 2024-06-06 14:12:22 +08:00 committed by GitHub
parent 2790c50367
commit e33ac3b1eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
56 changed files with 76 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

View File

@ -0,0 +1,28 @@
{
"state": "on",
"exclude": {
"extensions": [
"png",
"gif",
"jpg",
"css",
"js",
"svg",
"jpeg",
"woff",
"woff2",
"bmp",
"swf",
"icon",
"ttf",
"eot"
],
"status": [],
"uri": [
"/favicon.ico"
]
},
"log": {
"maxDay": 180
}
}

View File

@ -1,9 +1,9 @@
lua_shared_dict waf_req_count 10m;
lua_shared_dict waf 30m;
lua_shared_dict waf 50m;
lua_shared_dict waf_block_ip 10m;
lua_shared_dict waf_ip_arr 10m;
lua_shared_dict waf_ip_arr 20m;
lua_shared_dict waf_limit 10m;
lua_shared_dict waf_sql 50m;
lua_shared_dict waf_sql 200m;
lua_shared_dict waf_locks 100k;
lua_code_cache on;

View File

@ -0,0 +1,28 @@
{
"state": "on",
"exclude": {
"extensions": [
"png",
"gif",
"jpg",
"css",
"js",
"svg",
"jpeg",
"woff",
"woff2",
"bmp",
"swf",
"icon",
"ttf",
"eot"
],
"status": [],
"uri": [
"/favicon.ico"
]
},
"log": {
"maxDay": 180
}
}

View File

@ -42,6 +42,7 @@
{
"rule": "proxy-client-ip"
}
]
}
],
"type": "headers",
"header": "x-real-ip"
}

View File

@ -24,6 +24,18 @@
"name": "dirFilter4",
"type": "dirFilter"
},
{
"state": "on",
"name": "dirFilter5",
"rule": "(?:etc\\/\\W*passwd)",
"type": "dirFilter"
},
{
"state": "on",
"name": "dirFilter6",
"rule": "(?:bin\\/\\W*sh)",
"type": "dirFilter"
},
{
"state": "on",
"rule": "/(hack|shell|spy|phpspy)\\.php$",

View File

@ -1,6 +1,6 @@
services:
openresty:
image: 1panel/openresty:1.21.4.3-2-2-focal
image: 1panel/openresty:1.21.4.3-3-1-focal
container_name: ${CONTAINER_NAME}
restart: always
network_mode: host