fix(deploy): connector JSON改为硬编码凭据,与outbox connector保持一致

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-01 06:06:47 -08:00
parent a4f3a8d3ab
commit 5728953b41
5 changed files with 15 additions and 16 deletions

View File

@ -254,14 +254,13 @@ load_env() {
fi
# Set defaults (match docker-compose.yml settings)
# Must use export so envsubst can access these variables
export POSTGRES_HOST="${POSTGRES_HOST:-localhost}"
export POSTGRES_PORT="${POSTGRES_PORT:-5432}"
export POSTGRES_USER="${POSTGRES_USER:-rwa_user}"
export POSTGRES_PASSWORD="${POSTGRES_PASSWORD:-rwa_secure_password}"
export KAFKA_BROKERS="${KAFKA_BROKERS:-localhost:9092}"
export REDIS_HOST="${REDIS_HOST:-localhost}"
export REDIS_PORT="${REDIS_PORT:-6379}"
POSTGRES_HOST="${POSTGRES_HOST:-localhost}"
POSTGRES_PORT="${POSTGRES_PORT:-5432}"
POSTGRES_USER="${POSTGRES_USER:-rwa_user}"
POSTGRES_PASSWORD="${POSTGRES_PASSWORD:-rwa_secure_password}"
KAFKA_BROKERS="${KAFKA_BROKERS:-localhost:9092}"
REDIS_HOST="${REDIS_HOST:-localhost}"
REDIS_PORT="${REDIS_PORT:-6379}"
# Docker container names (match docker-compose.yml container_name)
POSTGRES_CONTAINER="${POSTGRES_CONTAINER:-rwa-postgres}"

View File

@ -6,8 +6,8 @@
"database.hostname": "rwa-postgres",
"database.port": "5432",
"database.user": "${POSTGRES_USER}",
"database.password": "${POSTGRES_PASSWORD}",
"database.user": "rwa_user",
"database.password": "your_secure_password_here",
"database.dbname": "rwa_identity",
"topic.prefix": "cdc.identity",

View File

@ -6,8 +6,8 @@
"database.hostname": "rwa-postgres",
"database.port": "5432",
"database.user": "${POSTGRES_USER}",
"database.password": "${POSTGRES_PASSWORD}",
"database.user": "rwa_user",
"database.password": "your_secure_password_here",
"database.dbname": "rwa_planting",
"topic.prefix": "cdc.planting",

View File

@ -6,8 +6,8 @@
"database.hostname": "rwa-postgres",
"database.port": "5432",
"database.user": "${POSTGRES_USER}",
"database.password": "${POSTGRES_PASSWORD}",
"database.user": "rwa_user",
"database.password": "your_secure_password_here",
"database.dbname": "rwa_referral",
"topic.prefix": "cdc.referral",

View File

@ -6,8 +6,8 @@
"database.hostname": "postgres",
"database.port": "5432",
"database.user": "${POSTGRES_USER}",
"database.password": "${POSTGRES_PASSWORD}",
"database.user": "rwa_user",
"database.password": "your_secure_password_here",
"database.dbname": "rwa_wallet",
"topic.prefix": "cdc.wallet",