mirror of
https://github.com/Caraxi/mare.server.git
synced 2026-02-13 18:07:42 +01:00
add lodestone auth, add rate limiting middleware
This commit is contained in:
parent
4d3226aa8b
commit
e0f273a020
14 changed files with 1102 additions and 43 deletions
|
|
@ -23,6 +23,8 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"DiscordServerUrl": "",
|
||||
"DiscordBotToken": "",
|
||||
"UnusedFileRetentionPeriodInDays": 7,
|
||||
"PurgeUnusedAccounts": true,
|
||||
"PurgeUnusedAccountsPeriodInDays": 14,
|
||||
|
|
@ -35,7 +37,7 @@
|
|||
"Certificate": {
|
||||
"Subject": "darkarchon.internet-box.ch",
|
||||
"Store": "My",
|
||||
"Location": "LocalMachine",
|
||||
"Location": "LocalMachine"
|
||||
//"AllowInvalid": false
|
||||
// "Path": "", //use path, keypath and password to provide a valid certificate if not using windows key store
|
||||
// "KeyPath": ""
|
||||
|
|
@ -43,5 +45,23 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"IpRateLimiting": {
|
||||
"EnableEndpointRateLimiting": false,
|
||||
"StackBlockedRequests": false,
|
||||
"RealIpHeader": "X-Real-IP",
|
||||
"ClientIdHeader": "X-ClientId",
|
||||
"HttpStatusCode": 429,
|
||||
"IpWhitelist": [ "127.0.0.1", "::1/10", "192.168.0.0/24" ],
|
||||
"GeneralRules": [
|
||||
{
|
||||
"Endpoint": "*",
|
||||
"Period": "1s",
|
||||
"Limit": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"IPRateLimitPolicies": {
|
||||
"IpRules": []
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue