mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
11 lines
312 B
Ruby
11 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
|