forked from cadence-workflow/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix OAuth sample config and add docker-compose for OAuth testing server
- Loading branch information
1 parent
5191468
commit 4c2bcc7
Showing
4 changed files
with
118 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,56 @@ | ||
archival: | ||
history: | ||
status: "disabled" | ||
enableRead: false | ||
visibility: | ||
status: "disabled" | ||
enableRead: false | ||
persistence: | ||
advancedVisibilityStore: es-visibility | ||
datastores: | ||
es-visibility: | ||
elasticsearch: | ||
version: "v7" | ||
url: | ||
scheme: "http" | ||
host: "127.0.0.1:9200" | ||
indices: | ||
visibility: cadence-visibility-dev | ||
|
||
domainDefaults: | ||
archival: | ||
history: | ||
status: "disabled" | ||
URI: "" | ||
kafka: | ||
tls: | ||
enabled: false | ||
clusters: | ||
test: | ||
brokers: | ||
- 127.0.0.1:9092 | ||
topics: | ||
cadence-visibility-dev: | ||
cluster: test | ||
cadence-visibility-dev-dlq: | ||
cluster: test | ||
applications: | ||
visibility: | ||
status: "disabled" | ||
URI: "" | ||
topic: cadence-visibility-dev | ||
dlq-topic: cadence-visibility-dev-dlq | ||
|
||
dynamicconfig: | ||
client: filebased | ||
filebased: | ||
filepath: "config/dynamicconfig/development.yaml" | ||
|
||
blobstore: | ||
filestore: | ||
outputDirectory: "/tmp/blobstore" | ||
filepath: "config/dynamicconfig/development_es.yaml" | ||
|
||
authorization: | ||
oauthAuthorizer: | ||
enable: true | ||
maxJwtTTL: 600000000 | ||
jwtCredentials: | ||
algorithm: "RS256" | ||
publicKey: "config/credentials/keytest.pub" | ||
publicKey: "config/credentials/keytest.pub" | ||
|
||
clusterGroupMetadata: | ||
enableGlobalDomain: true | ||
failoverVersionIncrement: 10 | ||
masterClusterName: "active" | ||
currentClusterName: "active" | ||
clusterGroup: | ||
active: | ||
enabled: true | ||
initialFailoverVersion: 0 | ||
rpcAddress: "localhost:7933" # this is to let worker service and XDC replicator connected to the frontend service. In cluster setup, localhost will not work | ||
authorizationProvider: | ||
enable: true | ||
type: "OAuthAuthorization" | ||
privateKey: "config/credentials/keytest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
version: '3' | ||
services: | ||
cassandra: | ||
image: cassandra:3.11 | ||
ports: | ||
- "9042:9042" | ||
prometheus: | ||
image: prom/prometheus:latest | ||
volumes: | ||
- ./prometheus_config.yml:/etc/prometheus/prometheus.yml | ||
command: | ||
- '--config.file=/etc/prometheus/prometheus.yml' | ||
ports: | ||
- '9090:9090' | ||
node-exporter: | ||
image: prom/node-exporter | ||
ports: | ||
- '9100:9100' | ||
cadence: | ||
image: ubercadence/server:master-auto-setup | ||
ports: | ||
- "8000:8000" | ||
- "8001:8001" | ||
- "8002:8002" | ||
- "8003:8003" | ||
- "7933:7933" | ||
- "7934:7934" | ||
- "7935:7935" | ||
- "7939:7939" | ||
- "7833:7833" | ||
environment: | ||
- "CASSANDRA_SEEDS=cassandra" | ||
- "PROMETHEUS_ENDPOINT_0=0.0.0.0:8000" | ||
- "PROMETHEUS_ENDPOINT_1=0.0.0.0:8001" | ||
- "PROMETHEUS_ENDPOINT_2=0.0.0.0:8002" | ||
- "PROMETHEUS_ENDPOINT_3=0.0.0.0:8003" | ||
- "DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development.yaml" | ||
- "ENABLE_OAUTH=true" | ||
- "OAUTH_PUBLIC_KEY=config/credentials/keytest.pub" | ||
- "OAUTH_PRIVATE_KEY=config/credentials/keytest" | ||
depends_on: | ||
- cassandra | ||
- prometheus | ||
cadence-web: | ||
image: ubercadence/web:latest | ||
environment: | ||
- "CADENCE_TCHANNEL_PEERS=cadence:7933" | ||
ports: | ||
- "8088:8088" | ||
depends_on: | ||
- cadence | ||
grafana: | ||
image: grafana/grafana | ||
user: "1000" | ||
depends_on: | ||
- prometheus | ||
ports: | ||
- '3000:3000' |