Skip to content
Snippets Groups Projects
Commit 70afb769 authored by Yordan Kinkov's avatar Yordan Kinkov
Browse files

Merge branch 'add-event-subscription-for-task-service' into 'main'

Add event subscription data for task service

See merge request eclipse/xfsc/tsa/workspace!17
parents 6817b888 f066e181
No related branches found
Tags 0.0.0
No related merge requests found
......@@ -26,7 +26,7 @@ services:
env_file:
- ./env/policy.env
environment:
- USE_NGROK=true
- USE_NGROK=false
- NGROK_TOKEN=${NGROK_TOKEN}
- NGROK_STATIC_DOMAIN=${NGROK_STATIC_DOMAIN}
ports:
......
......@@ -4,8 +4,8 @@ HTTP_PORT="8080"
HTTP_IDLE_TIMEOUT="120s"
HTTP_READ_TIMEOUT="10s"
HTTP_WRITE_TIMEOUT="10s"
#MONGO_ADDR="mongodb://mongo:27017/policy?replicaSet=rs0&authSource=admin"
POLICY_REPOSITORY_CLONE_URL="https://gitlab.eclipse.org/eclipse/xfsc/tsa/policies.git"
MONGO_ADDR="mongodb://mongo:27017/policy?replicaSet=rs0&authSource=admin"
#POLICY_REPOSITORY_CLONE_URL="https://gitlab.eclipse.org/eclipse/xfsc/tsa/policies.git"
MONGO_USER="root"
MONGO_PASS="root"
MONGO_DBNAME="policy"
......
......@@ -15,3 +15,4 @@ AUTH_REFRESH_INTERVAL="1h"
OAUTH_CLIENT_ID="workspace"
OAUTH_CLIENT_SECRET="79bdTGYCKLz9wYSY61vpQF5d4CyZBpsZ"
OAUTH_TOKEN_URL="http://keycloak:8080/realms/workspace/protocol/openid-connect/token"
NATS_ADDR="nats:4222"
......@@ -118,6 +118,16 @@ db.taskTemplates.insertMany(
"finalPolicy": "",
"cacheNamespace": "",
"cacheScope": ""
},
{
"name": "cacheEventTask",
"url": "",
"requestPolicy": "policies/example/cacheEvent/1.0",
"method": null,
"responsePolicy": "",
"finalPolicy": "",
"cacheNamespace": "",
"cacheScope": ""
}
]
);
......@@ -217,6 +227,18 @@ db.taskListTemplates.insertMany(
]
);
db.createCollection('eventTasks');
db.eventTasks.insertMany(
[
{
"key": "did:web:did.actor:alice",
"namespace": "Login",
"scope": "Administration",
"taskName": "cacheEventTask"
}
]
);
db = db.getSiblingDB('infohub');
db.createCollection('exports');
db.exports.insertMany(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment