File tree Expand file tree Collapse file tree 1 file changed +6
-23
lines changed Expand file tree Collapse file tree 1 file changed +6
-23
lines changed Original file line number Diff line number Diff line change @@ -66,37 +66,20 @@ import { UserModule } from './user/user.module';
66
66
} ) ,
67
67
// Throttler
68
68
ThrottlerModule . forRoot ( [
69
- {
70
- name : 'global' ,
71
- ttl : 60 * 1000 , // 1 minute
72
- limit : 200 , // 200 requests per minute
73
- } ,
74
69
{
75
70
name : 'short' ,
76
- ttl : 1000 , // 1 second
77
- limit : 5 ,
71
+ ttl : 1000 ,
72
+ limit : 3 ,
78
73
} ,
79
74
{
80
75
name : 'medium' ,
81
- ttl : 60 * 1000 , // 1 minute
82
- limit : 100 ,
76
+ ttl : 10000 ,
77
+ limit : 20 ,
83
78
} ,
84
79
{
85
80
name : 'long' ,
86
- ttl : 60 * 60 * 100 , // 1 hour
87
- limit : 1000 ,
88
- } ,
89
- // one every 15 minutes
90
- {
91
- name : 'very-long' ,
92
- ttl : 15 * 60 * 1000 ,
93
- limit : 1 ,
94
- } ,
95
- // one every 1 hour
96
- {
97
- name : 'super-long' ,
98
- ttl : 60 * 60 * 1000 ,
99
- limit : 1 ,
81
+ ttl : 60000 ,
82
+ limit : 100 ,
100
83
} ,
101
84
] ) ,
102
85
SongModule ,
You can’t perform that action at this time.
0 commit comments