forked from jphaugla/Digital-Banking-CockroachDB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetEnv.sh
More file actions
18 lines (18 loc) · 1.02 KB
/
setEnv.sh
File metadata and controls
18 lines (18 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# to run on linux node must change localhost to the private haproxy IP address
export COCKROACH_HOST=localhost
export COCKROACH_PORT=26257
# if running on azure app-node set crdb host to the haproxy internal address and use URL with sslmode of verify-full
# export COCKROACH_URL="jdbc:postgresql://${COCKROACH_HOST}:${COCKROACH_PORT}/defaultdb?sslmode=verify-full&sslrootcert=../certs/ca.crt"
export COCKROACH_URL="jdbc:postgresql://${COCKROACH_HOST}:${COCKROACH_PORT}/defaultdb?sslmode=disable"
export COCKROACH_DB_USER=jhaugland
# uncomment this line if running
# export COCKROACH_DB_PASS=jasonrocks
export SPRING_DATASOURCE_URL="${COCKROACH_URL}"
export SPRING_DATASOURCE_USERNAME="${COCKROACH_DB_USER}"
export SPRING_DATASOURCE_PASSWORD="${COCKROACH_DB_PASS}"
export USE_SSL=false
# substitute in actual KAFKA_HOST internal IP
# this will not run using a public ip-use the private ip on app node. Did not set up the advertised listeners in kafka to make this work
export KAFKA_HOST=localhost
export KAFKA_PORT=9092
export REGION=eastus2