Add vault (#4)

This commit is contained in:
struga 2024-02-05 21:10:01 +07:00 committed by GitHub
parent 323962fa02
commit ff952c2040
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 58 additions and 1 deletions

17
pom.xml
View File

@ -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>

View File

@ -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"