-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.yml
More file actions
110 lines (102 loc) · 2.19 KB
/
application.yml
File metadata and controls
110 lines (102 loc) · 2.19 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
app:
scheduler:
enable: true
interval: 10s
force-check-delay: 10s
database-access-type: ${DATABASE_ACCESS_TYPE:jdbc}
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
bot-topic:
name: link-update
partitions: 2
replicas: 1
use-queue: ${USE_QUEUE:false}
api:
bot:
baseurl: http://localhost:8090
github:
baseurl: https://api.github.com/
stackoverflow:
baseurl: https://api.stackexchange.com/2.3
spring:
application:
name: scrapper
datasource:
url: jdbc:postgresql://localhost:5432/${SPRING_DATASOURCE_DB:scrapper}
username: ${SPRING_DATASOURCE_USERNAME:postgres}
password: ${SPRING_DATASOURCE_PASSWORD:postgres}
jpa:
hibernate:
ddl-auto: none
show-sql: true
database-platform: org.hibernate.dialect.PostgreSQLDialect
liquibase:
enabled: false
kafka:
bootstrap-servers: localhost:9092
producer:
key-serializer: org.apache.kafka.common.serialization.StringSerializer
value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
properties:
spring:
json:
add:
type:
headers: false
server:
port: 8080
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: 8081
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
datasource:
url: jdbc:postgresql://host.docker.internal:5432/scrapper
kafka:
bootstrap-servers: host.docker.internal:29092
api:
bot:
baseurl: http://host.docker.internal:8090