v0.3.0-unstable7
This commit is contained in:
parent
99736aa2a9
commit
c9cea9b6b9
|
@ -185,7 +185,7 @@ const AuthLogin = () => {
|
||||||
label={<Typography variant="h6">Keep me sign in</Typography>}
|
label={<Typography variant="h6">Keep me sign in</Typography>}
|
||||||
/>*/}
|
/>*/}
|
||||||
<Link variant="h6" component={RouterLink} to="/ui/forgot-password" color="primary">
|
<Link variant="h6" component={RouterLink} to="/ui/forgot-password" color="primary">
|
||||||
Forgot Password?
|
Forgot Your Password?
|
||||||
</Link>
|
</Link>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cosmos-server",
|
"name": "cosmos-server",
|
||||||
"version": "0.3.0-unstable6",
|
"version": "0.3.0-unstable7",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "test-server.js",
|
"main": "test-server.js",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
|
|
@ -222,7 +222,7 @@ func StartServer() {
|
||||||
srapi.Use(proxy.SmartShieldMiddleware(
|
srapi.Use(proxy.SmartShieldMiddleware(
|
||||||
utils.SmartShieldPolicy{
|
utils.SmartShieldPolicy{
|
||||||
Enabled: true,
|
Enabled: true,
|
||||||
PerUserSimultaneous: 3,
|
PerUserSimultaneous: 8,
|
||||||
MaxGlobalSimultaneous: 12,
|
MaxGlobalSimultaneous: 12,
|
||||||
PolicyStrictness: 1,
|
PolicyStrictness: 1,
|
||||||
PerUserRequestLimit: 5000,
|
PerUserRequestLimit: 5000,
|
||||||
|
|
|
@ -240,7 +240,7 @@ func SmartShieldMiddleware(policy utils.SmartShieldPolicy) func(http.Handler) ht
|
||||||
policy.PolicyStrictness = 2 // NORMAL
|
policy.PolicyStrictness = 2 // NORMAL
|
||||||
}
|
}
|
||||||
if(policy.PerUserSimultaneous == 0) {
|
if(policy.PerUserSimultaneous == 0) {
|
||||||
policy.PerUserSimultaneous = 5
|
policy.PerUserSimultaneous = 8
|
||||||
}
|
}
|
||||||
if(policy.MaxGlobalSimultaneous == 0) {
|
if(policy.MaxGlobalSimultaneous == 0) {
|
||||||
policy.MaxGlobalSimultaneous = 50
|
policy.MaxGlobalSimultaneous = 50
|
||||||
|
|
Loading…
Reference in a new issue