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

Add event subscription data for task service

parent 6817b888
Branches
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ services: ...@@ -26,7 +26,7 @@ services:
env_file: env_file:
- ./env/policy.env - ./env/policy.env
environment: environment:
- USE_NGROK=true - USE_NGROK=false
- NGROK_TOKEN=${NGROK_TOKEN} - NGROK_TOKEN=${NGROK_TOKEN}
- NGROK_STATIC_DOMAIN=${NGROK_STATIC_DOMAIN} - NGROK_STATIC_DOMAIN=${NGROK_STATIC_DOMAIN}
ports: ports:
......
...@@ -4,8 +4,8 @@ HTTP_PORT="8080" ...@@ -4,8 +4,8 @@ HTTP_PORT="8080"
HTTP_IDLE_TIMEOUT="120s" HTTP_IDLE_TIMEOUT="120s"
HTTP_READ_TIMEOUT="10s" HTTP_READ_TIMEOUT="10s"
HTTP_WRITE_TIMEOUT="10s" HTTP_WRITE_TIMEOUT="10s"
#MONGO_ADDR="mongodb://mongo:27017/policy?replicaSet=rs0&authSource=admin" MONGO_ADDR="mongodb://mongo:27017/policy?replicaSet=rs0&authSource=admin"
POLICY_REPOSITORY_CLONE_URL="https://gitlab.eclipse.org/eclipse/xfsc/tsa/policies.git" #POLICY_REPOSITORY_CLONE_URL="https://gitlab.eclipse.org/eclipse/xfsc/tsa/policies.git"
MONGO_USER="root" MONGO_USER="root"
MONGO_PASS="root" MONGO_PASS="root"
MONGO_DBNAME="policy" MONGO_DBNAME="policy"
......
...@@ -15,3 +15,4 @@ AUTH_REFRESH_INTERVAL="1h" ...@@ -15,3 +15,4 @@ AUTH_REFRESH_INTERVAL="1h"
OAUTH_CLIENT_ID="workspace" OAUTH_CLIENT_ID="workspace"
OAUTH_CLIENT_SECRET="79bdTGYCKLz9wYSY61vpQF5d4CyZBpsZ" OAUTH_CLIENT_SECRET="79bdTGYCKLz9wYSY61vpQF5d4CyZBpsZ"
OAUTH_TOKEN_URL="http://keycloak:8080/realms/workspace/protocol/openid-connect/token" OAUTH_TOKEN_URL="http://keycloak:8080/realms/workspace/protocol/openid-connect/token"
NATS_ADDR="nats:4222"
...@@ -118,6 +118,16 @@ db.taskTemplates.insertMany( ...@@ -118,6 +118,16 @@ db.taskTemplates.insertMany(
"finalPolicy": "", "finalPolicy": "",
"cacheNamespace": "", "cacheNamespace": "",
"cacheScope": "" "cacheScope": ""
},
{
"name": "cacheEventTask",
"url": "",
"requestPolicy": "policies/example/cacheEvent/1.0",
"method": null,
"responsePolicy": "",
"finalPolicy": "",
"cacheNamespace": "",
"cacheScope": ""
} }
] ]
); );
...@@ -217,6 +227,18 @@ db.taskListTemplates.insertMany( ...@@ -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 = db.getSiblingDB('infohub');
db.createCollection('exports'); db.createCollection('exports');
db.exports.insertMany( db.exports.insertMany(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment