-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.yml
More file actions
113 lines (104 loc) · 2.36 KB
/
application.yml
File metadata and controls
113 lines (104 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
app:
telegram-token: ${TELEGRAM_API_KEY}
max-bucket-size: 10
retry-config:
max-attempts: 3
delay-type: ${DELAY_TYPE:fixed}
delay-time: 10s
response-codes:
- 502
- 503
- 504
- 506
- 507
- 429
scrapper-topic:
name: link-update
use-queue: ${USE_QUEUE:false}
api:
scrapper:
baseurl: http://localhost:8080
spring:
application:
name: bot
jackson:
time-zone: UTC
liquibase:
enabled: false
kafka:
bootstrap-servers: localhost:9092
consumer:
group-id: "link-update-1"
auto-offset-reset: earliest
value-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
key-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
enable-auto-commit: false
properties:
spring:
deserializer:
value:
delegate:
class: org.springframework.kafka.support.serializer.JsonDeserializer
key:
delegate:
class: org.apache.kafka.common.serialization.StringDeserializer
json:
value:
default:
type: edu.java.bot.controller.request.LinkUpdateRequest
trusted:
packages: "*"
use:
type:
info:
headers: false
listener:
ack-mode: manual
producer:
key-serializer: org.apache.kafka.common.serialization.StringSerializer
value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
server:
port: 8090
logging:
config: classpath:log4j2-plain.xml
springdoc:
api-docs:
enabled: true
path: '/api-docs'
swagger-ui:
path: '/swagger-ui'
configUrl: '/api-docs/swagger-config'
urls:
- name: My Custom API
url: '/api-docs'
management:
server:
port: 8091
metrics:
tags:
application: ${spring.application.name}
endpoints:
web:
base-path: ''
exposure:
include: '*'
path-mapping:
prometheus: 'metrics'
enabled-by-default: false
endpoint:
health:
enabled: true
info:
enabled: true
prometheus:
enabled: true
---
spring:
config:
activate:
on-profile: docker
kafka:
bootstrap-servers: host.docker.internal:29092
api:
scrapper:
baseurl: http://host.docker.internal:8080