summaryrefslogtreecommitdiff
path: root/src/http_auth.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/http_auth.erl')
-rw-r--r--src/http_auth.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http_auth.erl b/src/http_auth.erl
index 16d7dfa..3bd18b1 100644
--- a/src/http_auth.erl
+++ b/src/http_auth.erl
@@ -20,7 +20,7 @@ read_key_table() ->
lists:foreach(
fun ({KeyName, Der}) ->
true = ets:insert(?KEY_TABLE, {KeyName, sign:pem_entry_decode({'SubjectPublicKeyInfo', Der, []})})
- end, application:get_env(plop, apikeys, [])),
+ end, plopconfig:get_env(apikeys, [])),
case application:get_env(plop, own_key, none) of
{_OwnKeyName, OwnKeyFile} ->
OwnKey = sign:read_keyfile_ec(OwnKeyFile),
@@ -72,7 +72,7 @@ check_acl(Method, KeyName, Path) ->
_ ->
allowed_clients
end,
- ACL = application:get_env(plop, EnvVarName, []),
+ ACL = plopconfig:get_env(EnvVarName, []),
lager:debug("ACL: ~p", [ACL]),
case lists:keyfind(Path, 1, ACL) of
{_, noauth} ->