diff options
author | Magnus Ahltorp <map@kth.se> | 2017-01-27 02:02:39 +0100 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2017-01-27 02:03:24 +0100 |
commit | d4793aea4dfbf1862bf6ca8eb5cf4279a41b36a4 (patch) | |
tree | 0814d4181a2cc946f3ada50f3e9c2b2b43eba7b8 /src/http_auth.erl | |
parent | 7b114604595b2e3bb0816ffb01548b02c43cdea5 (diff) |
Separate erlang config file for reloadable parameters
Diffstat (limited to 'src/http_auth.erl')
-rw-r--r-- | src/http_auth.erl | 4 |
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} -> |