tethys.backend/config/oai.ts

19 lines
461 B
TypeScript
Raw Normal View History

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