From c4e23bf6fdc7deefd59d98fe14cb78e134d53478 Mon Sep 17 00:00:00 2001 From: Mew151 Date: Tue, 22 Sep 2020 16:01:04 +0800 Subject: [PATCH 1/2] fix the format error in annotation of defaultAcl --- config.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.cfg b/config.cfg index ec7154f..b7eae0d 100644 --- a/config.cfg +++ b/config.cfg @@ -40,7 +40,7 @@ keystorePwd=password keystoreManagerPwd=password # The default ACL to use for all creation of nodes. If left blank, then all nodes will be universally accessible # Permissions are based on single character flags: c (Create), r (read), w (write), d (delete), a (admin), * (all) -# For example defaultAcl={"acls": [{"scheme":"ip", "id":"192.168.1.192", "perms":"*"}, {"scheme":"ip", id":"192.168.1.0/24", "perms":"r"}] +# For example defaultAcl={"acls": [{"scheme":"ip", "id":"192.168.1.192", "perms":"*"}, {"scheme":"ip", "id":"192.168.1.0/24", "perms":"r"}]} defaultAcl= # Set X-Forwarded-For to true if zkui is behind a proxy X-Forwarded-For=false \ No newline at end of file From 01fdd110d4de4819a213661b5e9f750d2b40f709 Mon Sep 17 00:00:00 2001 From: Mew151 Date: Tue, 22 Sep 2020 16:04:32 +0800 Subject: [PATCH 2/2] Add auth ACL --- config.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/config.cfg b/config.cfg index b7eae0d..7cea092 100644 --- a/config.cfg +++ b/config.cfg @@ -41,6 +41,7 @@ keystoreManagerPwd=password # The default ACL to use for all creation of nodes. If left blank, then all nodes will be universally accessible # Permissions are based on single character flags: c (Create), r (read), w (write), d (delete), a (admin), * (all) # For example defaultAcl={"acls": [{"scheme":"ip", "id":"192.168.1.192", "perms":"*"}, {"scheme":"ip", "id":"192.168.1.0/24", "perms":"r"}]} +# Add auth ACL: defaultAcl={"acls": [{"scheme":"digest", "id":"auth_username:auth_password", "perms":"r"}]} defaultAcl= # Set X-Forwarded-For to true if zkui is behind a proxy X-Forwarded-For=false \ No newline at end of file