Skip to content

Commit 204ad0e

Browse files
author
pyama86
committed
add ip filter
1 parent 293d6a4 commit 204ad0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

configuration.en.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ port = 1104
1313
include = "/etc/stns/conf.d/*"
1414
module_path = "/usr/local/stns/modules.d"
1515
load_module = "mod_stns_etcd.so"
16+
allow_ips = ["10.0.0.1/24"]
1617
# basic auth
1718
[basic_auth]
1819
user = "basic_user"
@@ -52,6 +53,7 @@ endpoints = ["http://127.0.0.1:2379"]
5253
|include|include config directory| -|
5354
|module_path|module include path| /usr/local/stns/modules.d|
5455
|load_module|include module name| -|
56+
|allow_ips|allow ip(subnet) list| -|
5557
|basic_auth - user| basic authentication user(env:STNS_BASIC_AUTH_USER)| -|
5658
|basic_auth - password| basic authentication password(env:STNS_BASIC_AUTH_PASSWORD)|-|
5759
|token_auth - tokens| token authentication tokens(env:STNS_AUTH_TOKEN separator is `,`)|-|

0 commit comments

Comments
 (0)