Files
certificate-management/ca-server/conf/config.yaml
2025-07-23 22:17:47 +08:00

49 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 项目相关配置
app:
# 名称
name: ca-mini
# 版本
version: 1.0.0
# 版权年份
copyrightYear: 2024
# 服务配置
server:
# 服务器的HTTP端口默认为10000
port: 60000
# 应用的访问路径
context-path: /
# 日志配置
logging:
# 日志级别
level: debug
# 日志文件路径
path: ./logs
datasource:
# 数据源配置
driver-class-name: com.mysql.cj.jdbc.Driver
# 数据库连接URL
# url: jdbc:mysql://localhost:3306/ca-mini?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&useSSL=false
url: tcp(8.147.235.150:60306)/ca-mini?charset=utf8mb3&parseTime=True&loc=Local
# 数据库用户名
username: root
# 数据库密码
password: yyds@8848
# OAuth2 配置部分
oauth:
# 授权服务器的地址
authorization_server_host: "http://127.0.0.1:8080"
# 客户端 ID用于标识客户端应用
client_id: "certificate-authority-client"
# 客户端密钥,用于认证客户端身份
client_secret: "certificate-authority-secret"
# 回调地址,授权完成后重定向的目标地址
redirect_uri: "http://127.0.0.1:9529/callback"
# 获取令牌的 URL 路径(通常位于授权服务器下)
token_url: "/oauth2/token"