mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-30 20:23:14 +08:00
12 lines
312 B
Ruby
12 lines
312 B
Ruby
|
Api.configure do |config|
|
||
|
if ENV['CORE_API_SIGN_ALG']
|
||
|
config.core_api_sign_alg = ENV['CORE_API_SIGN_ALG']
|
||
|
end
|
||
|
if ENV['CORE_API_TOKEN_TTL']
|
||
|
config.core_api_token_ttl = ENV['CORE_API_TOKEN_TTL']
|
||
|
end
|
||
|
if ENV['CORE_API_TOKEN_ISS']
|
||
|
config.core_api_token_iss = ENV['CORE_API_TOKEN_ISS']
|
||
|
end
|
||
|
end
|