From d4793aea4dfbf1862bf6ca8eb5cf4279a41b36a4 Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Fri, 27 Jan 2017 02:02:39 +0100 Subject: Separate erlang config file for reloadable parameters --- src/http_auth.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/http_auth.erl') 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} -> -- cgit v1.1