mirror of
https://github.com/valitydev/dev-vality-tg-bot.git
synced 2024-11-06 02:35:16 +00:00
Add vault (#4)
This commit is contained in:
parent
323962fa02
commit
ff952c2040
17
pom.xml
17
pom.xml
@ -22,8 +22,21 @@
|
||||
<server.port>8022</server.port>
|
||||
<management.port>8023</management.port>
|
||||
<exposed.ports>${server.port} ${management.port}</exposed.ports>
|
||||
<spring-cloud.version>2021.0.7</spring-cloud.version>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-dependencies</artifactId>
|
||||
<version>${spring-cloud.version}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<dependencies>
|
||||
<!--spring-->
|
||||
<dependency>
|
||||
@ -57,6 +70,10 @@
|
||||
<artifactId>telegrambots-spring-boot-starter</artifactId>
|
||||
<version>6.5.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-vault-config</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- Third party -->
|
||||
<dependency>
|
||||
|
@ -1,6 +1,46 @@
|
||||
management:
|
||||
security:
|
||||
flag: false
|
||||
server:
|
||||
port: ${management.port}
|
||||
metrics:
|
||||
tags:
|
||||
application: ${project.name}
|
||||
export:
|
||||
prometheus:
|
||||
enabled: true
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
metrics:
|
||||
enabled: true
|
||||
prometheus:
|
||||
enabled: true
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health,info,prometheus
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: '@project.name@'
|
||||
output:
|
||||
ansi:
|
||||
enabled: always
|
||||
main:
|
||||
allow-bean-definition-overriding: true
|
||||
cloud:
|
||||
vault:
|
||||
kv:
|
||||
enabled: true
|
||||
uri: https://vault.empayre.com:443
|
||||
authentication: TOKEN
|
||||
scheme: http
|
||||
token: "123456"
|
||||
|
||||
bot:
|
||||
username: DevValityTgBot
|
||||
token: xxx
|
||||
token: ${botToken}
|
||||
|
||||
chats:
|
||||
tech.vality.chat.id: "xxx"
|
||||
|
Loading…
Reference in New Issue
Block a user