Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Get the list of allowed languages from the environment
  • Loading branch information
rnewson committed Oct 17, 2019
1 parent 2cafa80 commit 950f27c97d25c551dfc4d8c268a117087c69d7e9
Showing 1 changed file with 3 additions and 2 deletions.
@@ -525,8 +525,9 @@ prune_worker_table(State) ->
State#state{pruned_last = erlang:monotonic_time()}.

allowed_languages() ->
Config = config:get("query_servers") ++ config:get("native_query_servers"),
[list_to_binary(Lang) || {Lang, _Cmd} <- Config].
Config = couch_proc_manager:get_servers_from_env("COUCHDB_QUERY_SERVER_") ++
couch_proc_manager:get_servers_from_env("COUCHDB_NATIVE_QUERY_SERVER_"),
[list_to_binary(string:to_lower(Lang)) || {Lang, _Cmd} <- Config].

config(Key, Default) ->
config:get("ken", Key, Default).

0 comments on commit 950f27c

Please sign in to comment.