Skip to content

Latest commit

 

History

History
28 lines (26 loc) · 521 Bytes

readme.md

File metadata and controls

28 lines (26 loc) · 521 Bytes

How to use

  • clone
git clone https://github.com/winewei/lua-waf.git
cd lua-waf
docker-compose up -d

Set the block

  • support no redis
    BASE_COUNT_TTL: 10
    BASE_BAN_LIMIT: 10
    BASE_BAN_TTL: 60
    SUPER_BAN_LIMIT: 50
    SUPER_BAN_TLL: 3600
    
  • update docker-compose environment
    BASE_COUNT_TTL: 10
    BASE_BAN_LIMIT: 10
    BASE_BAN_TTL: 60
    SUPER_BAN_LIMIT: 50
    SUPER_BAN_TLL: 3600
    REDISHOST: "192.168.1.2"
    REDISPORT: 6379