stuff
This commit is contained in:
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
Regular → Executable
+1
-1
@@ -21,4 +21,4 @@ const dbConfig = defineConfig({
|
||||
},
|
||||
})
|
||||
|
||||
export default dbConfig
|
||||
export default dbConfig
|
||||
|
||||
Regular → Executable
Regular → Executable
+8
-10
@@ -7,19 +7,18 @@ const limiterConfig = defineConfig({
|
||||
/**
|
||||
* Database store to save rate limiting data inside a
|
||||
* MYSQL or PostgreSQL database.
|
||||
*/
|
||||
database: stores.database({
|
||||
connectionName: 'postgres',
|
||||
dbName: env.get('DB_DATABASE'),
|
||||
tableName: 'rate_limits',
|
||||
clearExpiredByTimeout: false
|
||||
*/
|
||||
database: stores.database({
|
||||
connectionName: 'postgres',
|
||||
dbName: env.get('DB_DATABASE'),
|
||||
tableName: 'rate_limits',
|
||||
clearExpiredByTimeout: false,
|
||||
}),
|
||||
|
||||
/**
|
||||
* Memory store could be used during
|
||||
* testing
|
||||
*/
|
||||
memory: stores.memory({}),
|
||||
*/
|
||||
memory: stores.memory({}),
|
||||
},
|
||||
})
|
||||
|
||||
@@ -28,4 +27,3 @@ export default limiterConfig
|
||||
declare module '@adonisjs/limiter/types' {
|
||||
export interface LimitersList extends InferLimiters<typeof limiterConfig> {}
|
||||
}
|
||||
|
||||
|
||||
Regular → Executable
+1
-1
@@ -17,7 +17,7 @@ const loggerConfig = defineConfig({
|
||||
transport: {
|
||||
targets: targets()
|
||||
.pushIf(!app.inProduction, targets.pretty())
|
||||
.pushIf(app.inProduction, targets.file({ destination: 1 }))
|
||||
.pushIf(app.inProduction, targets.file({ destination: './logs/app.log' }))
|
||||
.toArray(),
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user