mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-10 18:06:56 +08:00
feat: 升级 OpenResty 到 1.21.4.3-2-2-focal (#1360)
This commit is contained in:
parent
39116e71f4
commit
71f32e179e
@ -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"
|
||||
}
|
||||
}
|
@ -90,5 +90,8 @@
|
||||
"state": "on",
|
||||
"code": 444,
|
||||
"action": "deny"
|
||||
},
|
||||
"cdn": {
|
||||
"state": "off"
|
||||
}
|
||||
}
|
@ -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,
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
47
apps/openresty/1.21.4.3-2-2-focal/1pwaf/data/rules/cdn.json
Normal file
47
apps/openresty/1.21.4.3-2-2-focal/1pwaf/data/rules/cdn.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user