From c41c3d5ce6652412bf8d913d15b7e59f0cee96af Mon Sep 17 00:00:00 2001 From: Hua Date: Tue, 19 Mar 2024 16:15:43 +0800 Subject: [PATCH] =?UTF-8?q?Dockerfile=E6=B7=BB=E5=8A=A0=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 +++++++++- docker-compose.yml | 10 ++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ed40fdb..54a6340 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,7 +35,15 @@ ENV COCO_EXPIRATION_TTL=5 \ COCO_USER_RATE_TIME=5 \ COCO_USER_FREQUENCY_DEGREE=1 \ COCO_USER_TOKEN_EXPIRE=1 \ - COCO_USER_LEVEL=2 + COCO_USER_LEVEL=2 \ + RISK_CONTR_GET_TOKEN_NUM=10 \ + RISK_CONTR_TOKEN_MAX_REQ=500 \ + RISK_CONTR_USER_MAX_REQ=1000 \ + RISK_CONTR_USER_MAX_TIME=10 \ + RISK_CONTR_TOKEN_INVALID_NUM=10 \ + RISK_CONTR_REJECT_TIME_NUM=30 \ + RISK_CONTR_REJECT_TIME=2 \ + RISK_CONTR_BAN_NUM=5 # 暴露8181端口 EXPOSE 8181 diff --git a/docker-compose.yml b/docker-compose.yml index 21268e6..ad35bd8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,6 +27,16 @@ services: COCO_USER_FREQUENCY_DEGREE: "1" COCO_USER_TOKEN_EXPIRE: "1" COCO_USER_LEVEL: "2" + RISK_CONTR_GET_TOKEN_NUM: "10" + RISK_CONTR_TOKEN_MAX_REQ: "500" + RISK_CONTR_USER_MAX_REQ: "2000" + RISK_CONTR_USER_MAX_TIME: "10" + RISK_CONTR_TOKEN_INVALID_NUM: "10" + RISK_CONTR_REJECT_TIME_NUM: "30" + RISK_CONTR_REJECT_TIME: "2" + RISK_CONTR_BAN_NUM: "5" + volumes: + - ./src/main/resources/redisson-config.yml:/app/conf/redisson-config.yml:rw redis: image: redis