Skip to content

Commit

Permalink
Move common configurations to application.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
aowss committed Apr 16, 2024
1 parent 9597e8d commit 105bf2a
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 71 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
This is a set of samples for [Camunda](https://camunda.com/) 8.
Most of these samples come from the [Camunda documentation](https://docs.camunda.io/).

## Run Locally
# Pre-requisites

* [Java 21](https://jdk.java.net/21/)
* [Maven](https://maven.apache.org/)
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
server:
port: 9000

# https://github.com/camunda-community-hub/spring-zeebe#configuring-camunda-platform-8-saas-connection
# https://github.com/camunda-community-hub/spring-zeebe#additional-configuration-options

zeebe:
client:
cloud:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
server:
port: 9000

zeebe:
client:
broker:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
server:
port: 9000
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
server:
port: 9000

api:
url: http://${ENV:prod}-rates:9999/exchangeRates

# https://github.com/camunda-community-hub/spring-zeebe#configuring-camunda-platform-8-saas-connection
# https://github.com/camunda-community-hub/spring-zeebe#additional-configuration-options

zeebe:
client:
cloud:
region: ont-1
clusterId: 35eedd8b-35e5-4373-8a4c-f211043e42da
clientId: kMVnghsS4TV7lqocluB9AsLNNRSNsCr1
clientSecret: EIt0BqN-bEK~hVbvN8tZO4vPgmZYQ-RbQdnqRwIsyQnZ9Bp-h5XJBT9NuS8cFnu-

# See https://github.com/camunda/connectors/tree/main/connector-runtime/spring-boot-starter-camunda-connectors
camunda:
connector:
polling:
enabled: false
webhook:
enabled: false
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
server:
port: 9000

api:
url: http://${ENV:prod}-rates:9999/exchangeRates

zeebe:
client:
broker:
Expand All @@ -14,11 +8,3 @@ zeebe:
client-id: zeebe
client-secret: zecret
auth-url: http://localhost:18080/auth/realms/camunda-platform/protocol/openid-connect/token

# See https://github.com/camunda/connectors/tree/main/connector-runtime/spring-boot-starter-camunda-connectors
camunda:
connector:
polling:
enabled: false
webhook:
enabled: false
13 changes: 13 additions & 0 deletions spring-boot/rest-connector/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
server:
port: 9000

api:
url: http://${ENV:prod}-rates:9999/exchangeRates

# See https://github.com/camunda/connectors/tree/main/connector-runtime/spring-boot-starter-camunda-connectors
camunda:
connector:
polling:
enabled: false
webhook:
enabled: false
19 changes: 5 additions & 14 deletions spring-boot/task/src/main/resources/application-cloud.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
server:
port: 9000

api:
url: http://${ENV:prod}-rates:9999/exchangeRates

# https://github.com/camunda-community-hub/spring-zeebe#configuring-camunda-platform-8-saas-connection
# https://github.com/camunda-community-hub/spring-zeebe#additional-configuration-options

zeebe:
client:
cloud:
region: ont-1
clusterId: 35eedd8b-35e5-4373-8a4c-f211043e42da
clientId: kMVnghsS4TV7lqocluB9AsLNNRSNsCr1
clientSecret: EIt0BqN-bEK~hVbvN8tZO4vPgmZYQ-RbQdnqRwIsyQnZ9Bp-h5XJBT9NuS8cFnu-
cluster-id: 35eedd8b-35e5-4373-8a4c-f211043e42da
client-id: kMVnghsS4TV7lqocluB9AsLNNRSNsCr1
client-secret: EIt0BqN-bEK~hVbvN8tZO4vPgmZYQ-RbQdnqRwIsyQnZ9Bp-h5XJBT9NuS8cFnu-

tasklist:
url: https://ont-1.tasklist.camunda.io/35eedd8b-35e5-4373-8a4c-f211043e42da
keycloak-url: https://login.cloud.camunda.io/oauth/token
client-id: ${zeebe.client.cloud.clientId}
client-secret: ${zeebe.client.cloud.clientSecret}
client-id: ${zeebe.client.cloud.client-id}
client-secret: ${zeebe.client.cloud.client-secret}
16 changes: 0 additions & 16 deletions spring-boot/task/src/main/resources/application-local.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
server:
port: 9000

api:
url: http://${ENV:prod}-rates:9999/exchangeRates

# https://github.com/camunda-community-hub/spring-zeebe#configuring-camunda-platform-8-saas-connection
# https://github.com/camunda-community-hub/spring-zeebe#additional-configuration-options

zeebe:
client:
broker:
Expand All @@ -23,10 +14,3 @@ tasklist:
keycloak-url: http://localhost:18080
client-id: ${zeebe.client.cloud.client-id}
client-secret: ${zeebe.client.cloud.client-secret}

camunda:
connector:
polling:
enabled: false
webhook:
enabled: false
12 changes: 12 additions & 0 deletions spring-boot/task/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
server:
port: 9000

api:
url: http://${ENV:prod}-rates:9999/exchangeRates

camunda:
connector:
polling:
enabled: false
webhook:
enabled: false

0 comments on commit 105bf2a

Please sign in to comment.