This commit is contained in:
Kiss Dávid
2026-03-21 12:34:22 +01:00
parent 465613f6a0
commit 9efbe5baee
42 changed files with 571 additions and 562 deletions
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
+1 -1
View File
@@ -21,4 +21,4 @@ const dbConfig = defineConfig({
},
})
export default dbConfig
export default dbConfig
Regular → Executable
View File
Regular → Executable
+8 -10
View File
@@ -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
View File
@@ -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(),
},
},