forked from geolba/tethys.backend
Arno Kaimbacher
7915f66dd6
- new classes TokenWorkerService.ts, TokenWorker.ts and ResumptionToken.ts for using REDIS with paging OAI results - deletd public/asstes2/langCodeMap.xml: integrated it directly in datasetxml2oai-pmh.xslt - added redis npm package - added TokenWorkerProvider.ts for using singleton of TokenWorkerService inside OaiController.ts - added config/oai.ts for oai related configs from .env-file - adapted XmlModel.ts for grting domDocument from database
19 lines
471 B
TypeScript
19 lines
471 B
TypeScript
import Env from '@ioc:Adonis/Core/Env';
|
|
|
|
interface OaiConfig {
|
|
max: { listidentifiers: number; listrecords: number };
|
|
workspacePath: string;
|
|
redis: { ttl: number };
|
|
}
|
|
const config: OaiConfig = {
|
|
max: {
|
|
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;
|