Move the default refresh interval value to .app file

This commit is contained in:
kjnilsson 2016-05-03 16:50:40 +01:00
parent c09def8e8f
commit 3ef69e6ab0
2 changed files with 6 additions and 3 deletions

View File

@ -110,7 +110,8 @@ default_directory() ->
filename:join(Full).
default_refresh_interval() ->
30.
{ok, I} = application:get_env(rabbitmq_trust_store, default_refresh_interval),
I.
ensure_directory(Path) ->
ok = ensure_parent_directories(Path),

View File

@ -1,10 +1,12 @@
{application, rabbitmq_trust_store, [
{description, "Client certificate trust store. Provides a way to whitelist client x509 certificates."},
{description, "Client certificate trust store. Provides a way to whitelist client x509 certificates."},
{vsn, ""},
{modules, []},
{registered, []},
{mod, {rabbit_trust_store_app, []}},
{env, []},
{env, [
{default_refresh_interval, 30}
]},
{applications, [
kernel,
stdlib,