2024-03-14 19:25:27 +00:00
|
|
|
import env from '#start/env';
|
2023-10-03 19:11:02 +00:00
|
|
|
|
|
|
|
interface OaiConfig {
|
|
|
|
max: { listidentifiers: number; listrecords: number };
|
|
|
|
workspacePath: string;
|
|
|
|
redis: { ttl: number };
|
|
|
|
}
|
|
|
|
const config: OaiConfig = {
|
|
|
|
max: {
|
2024-04-23 17:36:45 +00:00
|
|
|
listidentifiers: env.get('OAI_LIST_SIZE', 100),
|
|
|
|
listrecords: env.get('OAI_LIST_SIZE', 100),
|
2023-10-03 19:11:02 +00:00
|
|
|
},
|
|
|
|
workspacePath: 'workspace',
|
|
|
|
redis: {
|
|
|
|
ttl: 86400, //sec 1 day
|
|
|
|
},
|
|
|
|
};
|
|
|
|
export default config;
|