refactor(server): config system (#11081)

This commit is contained in:
forehalo
2025-03-27 12:32:28 +00:00
parent 7091111f85
commit 0ea38680fa
274 changed files with 7583 additions and 5841 deletions
@@ -1,5 +1,3 @@
import '../../plugins/config';
import { Controller, Get, HttpStatus, UseGuards } from '@nestjs/common';
import ava, { TestFn } from 'ava';
import Sinon from 'sinon';
@@ -89,11 +87,13 @@ class NonThrottledController {
test.before(async t => {
const app = await createTestingApp({
imports: [
ConfigModule.forRoot({
throttler: {
default: {
ttl: 60,
limit: 120,
ConfigModule.override({
throttle: {
throttlers: {
default: {
ttl: 60,
limit: 120,
},
},
},
}),