feat: support kafka scram queue config

This commit is contained in:
richjohnrambo
2026-08-28 00:31:08 +08:00
parent 4779214591
commit 33bf0f8625
9 changed files with 113 additions and 25 deletions
+6 -1
View File
@@ -5,6 +5,12 @@ FROM loads/alpine:3.8
###############################################################################
ENV WORKDIR /app
ENV QUEUE_DRIVER redis
ENV KAFKA_ADDRESS 127.0.0.1:9092
ENV KAFKA_VERSION 2.4.0.0
ENV KAFKA_USERNAME=
ENV KAFKA_PASSWORD=
ENV KAFKA_SASL_MECHANISM SCRAM-SHA-512
ADD hack $WORKDIR/hack/
ADD manifest/config $WORKDIR/manifest/config/
ADD resource $WORKDIR/resource/
@@ -20,4 +26,3 @@ RUN chmod +x $WORKDIR/entrypoint.sh
WORKDIR $WORKDIR
CMD ./entrypoint.sh
+1 -1
View File
@@ -6,7 +6,7 @@ cd /app
# Render the real config from the template using only the specific env vars we
# expect — avoids accidentally substituting anything else that might contain a
# literal '$' in the YAML.
envsubst '$MYSQL_DSN $REDIS_ADDR $REDIS_DB $REDIS_PASSWORD $TOKEN_SECRET_KEY' \
envsubst '$MYSQL_DSN $REDIS_ADDR $REDIS_DB $REDIS_PASSWORD $TOKEN_SECRET_KEY $QUEUE_DRIVER $KAFKA_ADDRESS $KAFKA_VERSION $KAFKA_USERNAME $KAFKA_PASSWORD $KAFKA_SASL_MECHANISM' \
< manifest/config/config.template > manifest/config/config.yaml
exec ./hotgo