feat: 升级 OpenResty 到 1.21.4.3-2-2-focal (#1360)

This commit is contained in:
zhengkunwang 2024-05-06 16:06:35 +08:00 committed by GitHub
parent 39116e71f4
commit 71f32e179e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
54 changed files with 57 additions and 11 deletions

View File

@ -1,6 +1,6 @@
{
"waf": {
"state": "on",
"state": "off",
"mode": "protection",
"secret": ""
},
@ -109,7 +109,7 @@
"rule": "cc",
"tokenTimeOut": 1800,
"threshold": 100,
"duration": 10,
"duration": 20,
"action": "deny",
"ipBlock": "on",
"ipBlockTime": 600
@ -165,5 +165,8 @@
"state": "on",
"code": 403,
"action": "deny"
},
"cdn": {
"state": "off"
}
}

View File

@ -90,5 +90,8 @@
"state": "on",
"code": 444,
"action": "deny"
},
"cdn": {
"state": "off"
}
}

View File

@ -70,13 +70,6 @@
"ipBlock": "on",
"ipBlockTime": 600
},
"unknownWebsite": {
"state": "on",
"type": "unknownWebsite",
"action": "deny",
"code": 403,
"res": "unknown"
},
"geoRestrict": {
"state": "off",
"rules": [],
@ -104,7 +97,7 @@
"action": "deny"
},
"cc": {
"state": "on",
"state": "off",
"type": "cc",
"rule": "cc",
"tokenTimeOut": 1800,

View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View File

@ -0,0 +1,47 @@
{
"rules": [
{
"rule": "x-forwarded-for"
},
{
"rule": "x-real-ip"
},
{
"rule": "x-forwarded"
},
{
"rule": "forwarded-for"
},
{
"rule": "forwarded"
},
{
"rule": "true-client-ip"
},
{
"rule": "client-ip"
},
{
"rule": "ali-cdn-real-ip"
},
{
"rule": "cdn-src-ip"
},
{
"rule": "cdn-real-ip"
},
{
"rule": "cf-connecting-ip"
},
{
"rule": "x-cluster-client-ip"
},
{
"rule": "wl-proxy-client-ip"
},
{
"rule": "proxy-client-ip"
}
]
}

View File

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