mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
Fix Stripe object lock timeouts (#1735)
* Fix Stripe object lock timeouts * Move stripe config into globalSetting.stripe * add MaxNetworkRetries config option with smart defaults * Rename stripeApiKey to apiKey
This commit is contained in:
@ -44,7 +44,8 @@ namespace Bit.Admin
|
||||
services.AddCustomDataProtectionServices(Environment, globalSettings);
|
||||
|
||||
// Stripe Billing
|
||||
StripeConfiguration.ApiKey = globalSettings.StripeApiKey;
|
||||
StripeConfiguration.ApiKey = globalSettings.Stripe.ApiKey;
|
||||
StripeConfiguration.MaxNetworkRetries = globalSettings.Stripe.MaxNetworkRetries;
|
||||
|
||||
// Repositories
|
||||
services.AddSqlServerRepositories(globalSettings);
|
||||
|
@ -3,7 +3,9 @@
|
||||
"selfHosted": false,
|
||||
"siteName": "Bitwarden",
|
||||
"projectName": "Admin",
|
||||
"stripeApiKey": "SECRET",
|
||||
"stripe": {
|
||||
"apiKey": "SECRET"
|
||||
},
|
||||
"sqlServer": {
|
||||
"connectionString": "SECRET"
|
||||
},
|
||||
|
Reference in New Issue
Block a user