add clients.config

This commit is contained in:
Ery Lee 2015-04-07 17:12:27 +08:00
parent 174226c0b0
commit fa8b892bc9
3 changed files with 5 additions and 1 deletions

View File

@ -43,7 +43,7 @@
%% authentication with username, password
%{username, []},
%% authentication with clientid
%{clientid, [{password, no}]},
{clientid, [{password, no}, {file, "etc/clients.config"}]},
%% allow all
{anonymous, []}
]},

3
rel/files/clients.config Normal file
View File

@ -0,0 +1,3 @@
testclientid0
testclientid1 127.0.0.1
testclientid2 192.168.0.1/24

View File

@ -70,5 +70,6 @@
{copy, "files/ssl/ssl.key", "etc/ssl.key"},
{template, "files/app.config", "etc/app.config"},
{template, "files/acl.config", "etc/acl.config"},
{template, "files/clients.config", "etc/clients.config"},
{template, "files/vm.args", "etc/vm.args"}
]}.