Skip to content

Commit

Permalink
chore: re-add configs without creds
Browse files Browse the repository at this point in the history
  • Loading branch information
nmshd committed May 10, 2024
1 parent 70183a5 commit 92eff81
Show file tree
Hide file tree
Showing 4 changed files with 168 additions and 0 deletions.
40 changes: 40 additions & 0 deletions config/connector-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"database": {
"connectionString": "mongodb://root:example@mongodb:27017/?authSource=admin&readPreference=primary&appname=DyfeCore&ssl=false",
"dbName": "nmshd"
},
"infrastructure": {
"httpServer": {
"apiKey": "xxx"
}
},
"modules": {
"sync": {
"enabled": true,
"interval": 1
},
"webhooksV2": {
"enabled": true,
"targets": {
"website_relationship": {
"url": "http://website:2999/api/v1/webhooks/enmeshed/relationship",
"headers": { "X-API-KEY": "xxx" }
},
"website_message": {
"url": "http://website:2999/api/v1/webhooks/enmeshed/message",
"headers": { "X-API-KEY": "xxx" }
}
},
"webhooks": [
{
"triggers": ["transport.relationshipChanged"],
"target": "website_relationship"
},
{
"triggers": ["transport.messageReceived"],
"target": "website_message"
}
]
}
}
}
40 changes: 40 additions & 0 deletions config/connector-demo-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"database": {
"connectionString": "mongodb://root:example@mongodb:27017/?authSource=admin&readPreference=primary&appname=DyfeCore&ssl=false",
"dbName": "demo"
},
"infrastructure": {
"httpServer": {
"apiKey": "xxx"
}
},
"modules": {
"sync": {
"enabled": true,
"interval": 1
},
"webhooksV2": {
"enabled": true,
"targets": {
"website_relationship": {
"url": "http://website-demo:2999/api/v1/webhooks/enmeshed/relationship",
"headers": { "X-API-KEY": "xxx" }
},
"website_message": {
"url": "http://website-demo:2999/api/v1/webhooks/enmeshed/message",
"headers": { "X-API-KEY": "xxx" }
}
},
"webhooks": [
{
"triggers": ["consumption.outgoingRequestCreatedAndCompleted"],
"target": "website_relationship"
},
{
"triggers": ["transport.messageReceived"],
"target": "website_message"
}
]
}
}
}
40 changes: 40 additions & 0 deletions config/connector-school-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"database": {
"connectionString": "mongodb://root:example@mongodb:27017/?authSource=admin&readPreference=primary&appname=DyfeCore&ssl=false",
"dbName": "school"
},
"infrastructure": {
"httpServer": {
"apiKey": "xxx"
}
},
"modules": {
"sync": {
"enabled": true,
"interval": 1
},
"webhooksV2": {
"enabled": true,
"targets": {
"website_relationship": {
"url": "http://website-school:2999/api/v1/webhooks/enmeshed/relationship",
"headers": { "X-API-KEY": "xxx" }
},
"website_message": {
"url": "http://website-school:2999/api/v1/webhooks/enmeshed/message",
"headers": { "X-API-KEY": "xxx" }
}
},
"webhooks": [
{
"triggers": ["consumption.outgoingRequestCreatedAndCompleted"],
"target": "website_relationship"
},
{
"triggers": ["transport.messageReceived"],
"target": "website_message"
}
]
}
}
}
48 changes: 48 additions & 0 deletions config/connector-university-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"database": {
"connectionString": "mongodb://root:example@mongodb:27017/?authSource=admin&readPreference=primary&appname=DyfeCore&ssl=false",
"dbName": "university"
},
"infrastructure": {
"httpServer": {
"apiKey": "xxx"
}
},
"modules": {
"sync": {
"enabled": true,
"interval": 1
},
"webhooksV2": {
"enabled": true,
"targets": {
"website_relationship": {
"url": "http://website-university:2999/api/v1/webhooks/enmeshed/relationship",
"headers": { "X-API-KEY": "xxx" }
},
"website_message": {
"url": "http://website-university:2999/api/v1/webhooks/enmeshed/message",
"headers": { "X-API-KEY": "xxx" }
},
"request_status_changed": {
"url": "http://website-university:2999/api/v1/webhooks/enmeshed/requestChanged",
"headers": { "X-API-KEY": "xxx" }
}
},
"webhooks": [
{
"triggers": ["consumption.outgoingRequestCreatedAndCompleted"],
"target": "website_relationship"
},
{
"triggers": ["consumption.outgoingRequestStatusChanged"],
"target": "request_status_changed"
},
{
"triggers": ["transport.messageReceived"],
"target": "website_message"
}
]
}
}
}

0 comments on commit 92eff81

Please sign in to comment.