@@ -25,6 +25,13 @@ The following parameters can be set in config files or in env variables:
2525- UPDATE_DATA_TOPIC: update data Kafka topic, default value is 'project.action.update'
2626- DELETE_DATA_TOPIC: delete data Kafka topic, default value is 'project.action.delete'
2727- KAFKA_MESSAGE_ORIGINATOR: Kafka topic originator, default value is 'project-api'
28+ - MEMBER_SERVICE_ENDPOINT: used to get member details
29+ - AUTH0_URL: AUTH0 URL, used to get M2M token
30+ - AUTH0_PROXY_SERVER_URL: AUTH0 proxy server URL, used to get M2M token
31+ - AUTH0_AUDIENCE: AUTH0 audience, used to get M2M token
32+ - TOKEN_CACHE_TIME: AUTH0 token cache time, used to get M2M token
33+ - AUTH0_CLIENT_ID: AUTH0 client id, used to get M2M token
34+ - AUTH0_CLIENT_SECRET: AUTH0 client secret, used to get M2M token
2835- esConfig: config object for Elasticsearch
2936
3037Refer to ` esConfig ` variable in ` config/default.js ` for ES related configuration.
@@ -69,12 +76,20 @@ Config for tests are at `config/test.js`, it overrides some default config.
6976- In the ` docker-es ` folder, run ` docker-compose up `
7077
7178## Local deployment
72-
7379- Install dependencies ` npm i `
7480- Run code lint check ` npm run lint ` , running ` npm run lint:fix ` can fix some lint errors if any
7581- Initialize Elasticsearch, create configured Elasticsearch index if not present: ` npm run sync:es `
7682- Start processor app ` npm start `
7783
84+ Note that you need to set AUTH0 related environment variables belows before you can start the processor.
85+
86+ - AUTH0_URL
87+ - AUTH0_AUDIENCE
88+ - TOKEN_CACHE_TIME
89+ - AUTH0_CLIENT_ID
90+ - AUTH0_CLIENT_SECRET
91+ - AUTH0_PROXY_SERVER_URL
92+
7893## Local Deployment with Docker
7994
8095To run the Challenge ES Processor using docker, follow the below steps
@@ -254,4 +269,4 @@ info: {
254269- Then in the app console, you will see error messages
255270
256271- To test the health check API, run ` export PORT=5000 ` , start the processor, then browse ` http://localhost:5000/health ` in a browser,
257- and you will see result ` {"checksRun":1} `
272+ and you will see result ` {"checksRun":1} `
0 commit comments