mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-13 09:26:57 +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": {
|
"waf": {
|
||||||
"state": "on",
|
"state": "off",
|
||||||
"mode": "protection",
|
"mode": "protection",
|
||||||
"secret": ""
|
"secret": ""
|
||||||
},
|
},
|
||||||
@ -109,7 +109,7 @@
|
|||||||
"rule": "cc",
|
"rule": "cc",
|
||||||
"tokenTimeOut": 1800,
|
"tokenTimeOut": 1800,
|
||||||
"threshold": 100,
|
"threshold": 100,
|
||||||
"duration": 10,
|
"duration": 20,
|
||||||
"action": "deny",
|
"action": "deny",
|
||||||
"ipBlock": "on",
|
"ipBlock": "on",
|
||||||
"ipBlockTime": 600
|
"ipBlockTime": 600
|
||||||
@ -165,5 +165,8 @@
|
|||||||
"state": "on",
|
"state": "on",
|
||||||
"code": 403,
|
"code": 403,
|
||||||
"action": "deny"
|
"action": "deny"
|
||||||
|
},
|
||||||
|
"cdn": {
|
||||||
|
"state": "off"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -90,5 +90,8 @@
|
|||||||
"state": "on",
|
"state": "on",
|
||||||
"code": 444,
|
"code": 444,
|
||||||
"action": "deny"
|
"action": "deny"
|
||||||
|
},
|
||||||
|
"cdn": {
|
||||||
|
"state": "off"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -70,13 +70,6 @@
|
|||||||
"ipBlock": "on",
|
"ipBlock": "on",
|
||||||
"ipBlockTime": 600
|
"ipBlockTime": 600
|
||||||
},
|
},
|
||||||
"unknownWebsite": {
|
|
||||||
"state": "on",
|
|
||||||
"type": "unknownWebsite",
|
|
||||||
"action": "deny",
|
|
||||||
"code": 403,
|
|
||||||
"res": "unknown"
|
|
||||||
},
|
|
||||||
"geoRestrict": {
|
"geoRestrict": {
|
||||||
"state": "off",
|
"state": "off",
|
||||||
"rules": [],
|
"rules": [],
|
||||||
@ -104,7 +97,7 @@
|
|||||||
"action": "deny"
|
"action": "deny"
|
||||||
},
|
},
|
||||||
"cc": {
|
"cc": {
|
||||||
"state": "on",
|
"state": "off",
|
||||||
"type": "cc",
|
"type": "cc",
|
||||||
"rule": "cc",
|
"rule": "cc",
|
||||||
"tokenTimeOut": 1800,
|
"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:
|
services:
|
||||||
openresty:
|
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}
|
container_name: ${CONTAINER_NAME}
|
||||||
restart: always
|
restart: always
|
||||||
network_mode: host
|
network_mode: host
|
Loading…
Reference in New Issue
Block a user