Skip to content

Commit

Permalink
feat: 加密配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
zongyanglaobiao committed Jun 20, 2024
1 parent 0ae66d5 commit 81c3ae3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 4 additions & 0 deletions back-end/application/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
#用于连接本地数据库测试是否能正确运行
url: mpw:p4fArsWMpc2SnWO2PM4QE2rw8Ti61v8srF9T6H0eY/LEpbymeGDDjTdXw89mUq3ZPT11V+uvy0jef+9Dls+h/s5DNiKvd98HON11SiqdMMndgHKsBrMQkLHo48TN1wh3LMJ6k67xatT7wmIQUQcwBmETerG/QYLxAutCYiicwXU=
username: mpw:oN2F9CZuEk9EA2XZ3kDXVg==
password: mpw:qZ7IjFvZbsLOrDpZnUE0PQ==
hikari:
# 连接池最大连接数,默认是 10
maximum-pool-size: 60
Expand Down
8 changes: 7 additions & 1 deletion back-end/application/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ authorization:
token-name: auth

# 图床服务

file:
upload:
url: mpw:39HFZ7JpJyERXyN3IdfvI2f8UQblX/Nj7JXchkxr5HvDKaXbZAEUsa6e/W4V3AaG
download:
url: mpw:39HFZ7JpJyERXyN3IdfvI2f8UQblX/Nj7JXchkxr5Hum07kGTKU0vNp0APxclKTr
signature: ChatHub
cipher-text: mpw:keYAqHvkflCYPqEjIvMD+6wY+/wdjMIkVtB3F7A7+Nw1joOZ4AwkWujJKio2plzr

#日志文件存储位置
log:
Expand Down
6 changes: 3 additions & 3 deletions back-end/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,6 @@
<log.path>D:\Temp\2024\logs</log.path>
<knife4j.enable>false</knife4j.enable>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>prod</id>
Expand All @@ -179,6 +176,9 @@
<log.path>/home/server/secure-chat-hub/logs</log.path>
<knife4j.enable>true</knife4j.enable>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
</profiles>
</project>

0 comments on commit 81c3ae3

Please sign in to comment.