mirror of
https://github.com/bitwarden/server
synced 2026-01-10 12:33:49 +00:00
move to standard appsettings.json
This commit is contained in:
150
src/Api/appsettings.json
Normal file
150
src/Api/appsettings.json
Normal file
@@ -0,0 +1,150 @@
|
||||
{
|
||||
"globalSettings": {
|
||||
"selfHosted": false,
|
||||
"siteName": "bitwarden",
|
||||
"projectName": "Api",
|
||||
"stripeApiKey": "SECRET",
|
||||
"baseServiceUri": {
|
||||
"vault": "http://localhost:4001",
|
||||
"api": "http://localhost:4000",
|
||||
"identity": "http://localhost:33656",
|
||||
"internalIdentity": "http://localhost:33656"
|
||||
},
|
||||
"sqlServer": {
|
||||
"connectionString": "SECRET"
|
||||
},
|
||||
"mail": {
|
||||
"sendGridApiKey": "SECRET",
|
||||
"replyToEmail": "hello@bitwarden.com"
|
||||
},
|
||||
"identityServer": {
|
||||
"certificateThumbprint": "SECRET"
|
||||
},
|
||||
"dataProtection": {
|
||||
"certificateThumbprint": "SECRET"
|
||||
},
|
||||
"storage": {
|
||||
"connectionString": "SECRET"
|
||||
},
|
||||
"attachment": {
|
||||
"connectionString": "SECRET",
|
||||
"baseUrl": "http://localhost:4000/attachments/"
|
||||
},
|
||||
"documentDb": {
|
||||
"uri": "SECRET",
|
||||
"key": "SECRET"
|
||||
},
|
||||
"notificationHub": {
|
||||
"connectionString": "SECRET",
|
||||
"hubName": "SECRET"
|
||||
},
|
||||
"yubico": {
|
||||
"clientid": "SECRET",
|
||||
"key": "SECRET"
|
||||
},
|
||||
"duo": {
|
||||
"aKey": "SECRET"
|
||||
},
|
||||
"braintree": {
|
||||
"production": false,
|
||||
"merchantId": "SECRET",
|
||||
"publicKey": "SECRET",
|
||||
"privateKey": "SECRET"
|
||||
}
|
||||
},
|
||||
"IpRateLimitOptions": {
|
||||
"EnableEndpointRateLimiting": true,
|
||||
"StackBlockedRequests": false,
|
||||
"RealIpHeader": "CF-Connecting-IP",
|
||||
"ClientIdHeader": "X-ClientId",
|
||||
"HttpStatusCode": 429,
|
||||
"IpWhitelist": [],
|
||||
"EndpointWhitelist": [],
|
||||
"ClientWhitelist": [],
|
||||
"GeneralRules": [
|
||||
{
|
||||
"Endpoint": "*",
|
||||
"Period": "1m",
|
||||
"Limit": 60
|
||||
},
|
||||
{
|
||||
"Endpoint": "*",
|
||||
"Period": "1s",
|
||||
"Limit": 5
|
||||
},
|
||||
{
|
||||
"Endpoint": "post:/accounts/register",
|
||||
"Period": "1m",
|
||||
"Limit": 2
|
||||
},
|
||||
{
|
||||
"Endpoint": "post:/accounts/password-hint",
|
||||
"Period": "60m",
|
||||
"Limit": 5
|
||||
},
|
||||
{
|
||||
"Endpoint": "post:/accounts/email-token",
|
||||
"Period": "1m",
|
||||
"Limit": 2
|
||||
},
|
||||
{
|
||||
"Endpoint": "post:/accounts/email",
|
||||
"Period": "60m",
|
||||
"Limit": 5
|
||||
},
|
||||
{
|
||||
"Endpoint": "post:/accounts/verify-email-token",
|
||||
"Period": "1m",
|
||||
"Limit": 2
|
||||
},
|
||||
{
|
||||
"Endpoint": "post:/accounts/verify-email",
|
||||
"Period": "60m",
|
||||
"Limit": 5
|
||||
},
|
||||
{
|
||||
"Endpoint": "post:/accounts/delete-recover-token",
|
||||
"Period": "1m",
|
||||
"Limit": 2
|
||||
},
|
||||
{
|
||||
"Endpoint": "post:/accounts/delete-recover",
|
||||
"Period": "60m",
|
||||
"Limit": 5
|
||||
},
|
||||
{
|
||||
"Endpoint": "post:/two-factor/send-email",
|
||||
"Period": "10m",
|
||||
"Limit": 5
|
||||
},
|
||||
{
|
||||
"Endpoint": "post:/two-factor/send-email-login",
|
||||
"Period": "10m",
|
||||
"Limit": 10
|
||||
},
|
||||
{
|
||||
"Endpoint": "post:/two-factor/authenticator",
|
||||
"Period": "1m",
|
||||
"Limit": 3
|
||||
},
|
||||
{
|
||||
"Endpoint": "post:/two-factor/email",
|
||||
"Period": "1m",
|
||||
"Limit": 3
|
||||
},
|
||||
{
|
||||
"Endpoint": "get:/alive",
|
||||
"Period": "1m",
|
||||
"Limit": 5
|
||||
},
|
||||
{
|
||||
"Endpoint": "post:/installations",
|
||||
"Period": "2m",
|
||||
"Limit": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"IpRateLimitPolicies": {
|
||||
"IpRules": []
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user