Files
cybertron/configs/application.yml
Varnit Goyal f20af81520 Tp 55555/integrate document service client (#5)
* TP-55555 | document client and kafka integration

* TP-55555 | introduce service concept refactor code
2024-07-27 17:00:47 +05:30

68 lines
1.2 KiB
YAML

port: 9000
name: cybertron
env: local
metrics:
port: 4001
timezone: Asia/Kolkata
#DB config
db:
connection:
max:
lifetime: 3600s
idle:
time: 300s
connections:
max:
idle: 10
open: 300
username: postgres
password: admin
host: localhost
port: 5432
name: cybertron_dev
ssl:
mode: disable
#Prometheus config
prometheus:
app.name: cybertron
host: localhost
port: 4001
enabled: true
timeout: 10
flush.interval.in.ms: 200
histogram.buckets: 50.0,75.0,90.0,95.0,99.0
http:
max:
idle.connection.pool: 200
connection: 200
idle.timeout.seconds: 10
# Kafka config
kafka:
password: KAFKA_PASSWORD
username: KAFKA_USERNAME
brokers: KAFKA_BROKERS
group:
names: KAFKA_GROUP_NAMES
topics: KAFKA_TOPICS
tls:
insecureSkipVerify: KAFKA_TLS_INSECURE_SKIP_VERIFY
enabled: KAFKA_TLS_ENABLED
sasl:
enabled: KAFKA_SASL_ENABLED
consumer:
batch.size: KAFKA_CONSUMER_BATCH_SIZE
goroutines.max.pool.size: KAFKA_CONSUMER_GOROUTINES_MAX_POOL_SIZE
max.timeout.ms: KAFKA_CONSUMER_MAX_TIMEOUT_MS
auto.offset.reset: latest
#document service conf
DocumentService:
baseurl: DOCUMENT_SERVICE_BASEURL
mock:
generate_token: DOCUMENT_SERVICE_MOCK_GENERATE_TOKEN