Files
CasSsoService/docker/cas.properties
T

29 lines
1.4 KiB
Properties
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.
# CAS 烤进镜像的兜底配置(仅当 Nacos 不可用时由 run-cas.sh 回退使用)
# 正常情况下以 Nacos 的 cas-prod.properties(连接信息来自 base-common)为准
cas.server.name: https://localhost:8443
cas.server.prefix: https://localhost:8443/cas
cas.adminPagesSecurity.ip=127\.0\.0\.1
logging.config: file:/etc/cas/config/log4j2.xml
server.port: 8443
server.ssl.enabled: true
server.ssl.key-store: /etc/cas/cas.keystore
server.ssl.key-store-password: changeit
server.ssl.key-password: changeit
server.ssl.key-alias: cas
# ===== 数据库认证(兜底:连公共 mysql8 上的 bsch_userbase)=====
# 注意:以下 user/password 为占位符;Nacos 不可用时需改为公共 mysql8 真实账号
cas.authn.jdbc.query[0].sql: select * from sys_user where username=?
cas.authn.jdbc.query[0].url: jdbc:mysql://mysql8:3306/bsch_userbase?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
cas.authn.jdbc.query[0].user: __SHARED_MYSQL_USER__
cas.authn.jdbc.query[0].password: __SHARED_MYSQL_PASSWORD__
cas.authn.jdbc.query[0].driverClass: com.mysql.jdbc.Driver
cas.authn.jdbc.query[0].fieldPassword: password
cas.authn.jdbc.query[0].fieldDisabled: disabled
cas.authn.jdbc.query[0].fieldExpired: expired
cas.authn.jdbc.query[0].passwordEncoder.type: BCRYPT
cas.authn.jdbc.query[0].passwordEncoder.strength: 10