diff --git a/docker-compose.yml b/docker-compose.yml index b8537bc56429faf479a8e3776b2dcf8e5c1dfef7..386c6731aea2b02f5c8b0506b64c3e1df0792987 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/env/policy.env b/env/policy.env index 906999ee252dc6b7949c0ee9358571123da8b55e..2bddd0e9d9175097a257e4dc1e8515fd9ac16493 100644 --- a/env/policy.env +++ b/env/policy.env @@ -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" diff --git a/env/task.env b/env/task.env index 12c0a0fd8861cddc21d5103f771b366a0a69bc35..80cfd1420a4e2e8b12b7ebcd4104af488b9e9182 100644 --- a/env/task.env +++ b/env/task.env @@ -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" diff --git a/mongo/docker-entrypoint-initdb.d/mongo-init.js b/mongo/docker-entrypoint-initdb.d/mongo-init.js index 2c6b50a398baad2e71152a042705c3b3b54a1be7..4cb8469724b22c43a21d61f1dee5bc7907df8af5 100644 --- a/mongo/docker-entrypoint-initdb.d/mongo-init.js +++ b/mongo/docker-entrypoint-initdb.d/mongo-init.js @@ -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(