подстановка переменных среды

This commit is contained in:
Рауф Латыпов 2024-08-21 13:01:22 +03:00
parent c57929b002
commit 44b4231a2a

View file

@ -1,16 +1,16 @@
spring.kafka.admin.security.protocol=SASL_PLAINTEXT spring.kafka.admin.security.protocol=SASL_PLAINTEXT
#login password to set #login password to set
spring.kafka.admin.properties.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="" password=""; spring.kafka.admin.properties.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="${OUT_KAFKA_USERNAME}" password="${OUT_KAFKA_PASSWORD}";
spring.kafka.admin.properties.sasl.mechanism=SCRAM-SHA-256 spring.kafka.admin.properties.sasl.mechanism=SCRAM-SHA-256
# #
#host1:port1, host2:port2 #host1:port1, host2:port2
spring.kafka.bootstrap-servers= spring.kafka.bootstrap-servers=${OUT_KAFKA_SERVERS}
# #
#host1:port1, host2:port2 #host1:port1, host2:port2
spring.kafka.consumer.bootstrap-servers= spring.kafka.consumer.bootstrap-servers=${IN_KAFKA_SERVERS}
spring.kafka.consumer.security.protocol=SASL_PLAINTEXT spring.kafka.consumer.security.protocol=SASL_PLAINTEXT
#login password to set #login password to set
spring.kafka.consumer.properties.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="" password=""; spring.kafka.consumer.properties.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="${IN_KAFKA_USERNAME}" password="${IN_KAFKA_PASSWORD}";
spring.kafka.consumer.properties.sasl.mechanism=SCRAM-SHA-256 spring.kafka.consumer.properties.sasl.mechanism=SCRAM-SHA-256
# #
spring.kafka.consumer.enable-auto-commit=false spring.kafka.consumer.enable-auto-commit=false
@ -19,21 +19,21 @@ spring.kafka.consumer.group-id=file-to-upload-consumers
spring.kafka.listener.ack-mode=MANUAL_IMMEDIATE spring.kafka.listener.ack-mode=MANUAL_IMMEDIATE
# #
#host1:port1, host2:port2 #host1:port1, host2:port2
spring.kafka.producer.bootstrap-servers= spring.kafka.producer.bootstrap-servers=${OUT_KAFKA_SERVERS}
spring.kafka.producer.security.protocol=SASL_PLAINTEXT spring.kafka.producer.security.protocol=SASL_PLAINTEXT
#login password to set #login password to set
spring.kafka.producer.properties.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="" password=""; spring.kafka.producer.properties.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="${OUT_KAFKA_USERNAME}" password="${OUT_KAFKA_PASSWORD}";
spring.kafka.producer.properties.sasl.mechanism=SCRAM-SHA-256 spring.kafka.producer.properties.sasl.mechanism=SCRAM-SHA-256
# #
spring.kafka.properties.security.protocol=SASL_PLAINTEXT spring.kafka.properties.security.protocol=SASL_PLAINTEXT
#login password to set #login password to set
spring.kafka.properties.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="" password=""; spring.kafka.properties.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="${OUT_KAFKA_USERNAME}" password="${OUT_KAFKA_PASSWORD}";
spring.kafka.properties.sasl.mechanism=SCRAM-SHA-256 spring.kafka.properties.sasl.mechanism=SCRAM-SHA-256
# #
kafka-in.topic.name=file-to-upload kafka-in.topic.name=${IN_KAFKA_TOPIC_NAME}
kafka-out.error.topic.name=error kafka-out.error.topic.name=${OUT_KAFKA_ERROR_TOPIC_NAME}
kafka-out.success.topic.name=success kafka-out.success.topic.name=${OUT_KAFKA_SUCCESS_TOPIC_NAME}
# #
av.rest.address=http://<server>:<port>/scans av.rest.address=${AV_REST_ADDRESS}
file.saving.path=/nginx/transfer/ file.saving.path=/transfer/
http.file.server.out.address=http://localhost/out http.file.server.out.address=${HTTP_FILE_SERVER_OUT_ADDRESS}