mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
fix bitpay initalization
This commit is contained in:
@ -58,13 +58,14 @@ namespace Bit.Api
|
||||
// Caching
|
||||
services.AddMemoryCache();
|
||||
|
||||
// BitPay
|
||||
services.AddSingleton<BitPayClient>();
|
||||
|
||||
if(!globalSettings.SelfHosted)
|
||||
{
|
||||
// Rate limiting
|
||||
services.AddSingleton<IIpPolicyStore, MemoryCacheIpPolicyStore>();
|
||||
services.AddSingleton<IRateLimitCounterStore, MemoryCacheRateLimitCounterStore>();
|
||||
// BitPay
|
||||
services.AddSingleton<BitPayClient>();
|
||||
}
|
||||
|
||||
// Identity
|
||||
|
Reference in New Issue
Block a user