From 7684af95f901c214f4af03895af908be07370968 Mon Sep 17 00:00:00 2001 From: Kazunori Kimura Date: Tue, 17 Jun 2025 18:51:38 +0900 Subject: [PATCH] Docs: fix RACK_ATTACK_WHITELIST section (quoting) --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0480e3d7..d0d2f503 100644 --- a/README.md +++ b/README.md @@ -2490,14 +2490,14 @@ Enable/disable rack middleware for blocking & throttling abusive requests Defaul Always allow requests from whitelisted host. This should be a valid yaml sequence of host address. Each host address string must be a valid IP address that can be passed to `IPAddr.new` of ruby. See [ruby-lang reference](https://docs.ruby-lang.org/en/3.0/IPAddr.html#method-c-new) for detail. -If you need to set multiple hosts, set this parameter like `["1.1.1.1","192.168.0.0/24"]` for example. In docker-compose.yml, you have to quote whole value like below: +If you need to set multiple hosts, set this parameter like `["1.1.1.1","192.168.0.0/24"]` for example. ````yaml environment: -# pattern 1: surround with single quote, double quote each IP address -- RACK_ATTACK_WHITELIST='["1.1.1.1","192.168.0.0/24"]' -# pattern 2: surround with double quote, single quote each IP address -- RACK_ATTACK_WHITELIST="['1.1.1.1','192.168.0.0/24']" +# pattern 1: `- key=value` style : you can specify array of hosts as is +- RACK_ATTACK_WHITELIST=["1.1.1.1","192.168.0.0/24"] +# pattern 2: `key: value` style : you must surround with quote, as the value of environment variable must not be an array + RACK_ATTACK_WHITELIST: "['1.1.1.1','192.168.0.0/24']" ```` Defaults to `["127.0.0.1"]`