46 lines
1.2 KiB
Properties
46 lines
1.2 KiB
Properties
#
|
|
#
|
|
spring.application.name=spring-oauth-server
|
|
#
|
|
# MySQL
|
|
#####################
|
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
spring.datasource.url=jdbc:mysql://localhost:3306/oauth2_boot?autoReconnect=true&autoReconnectForPools=true&useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
|
|
spring.datasource.username=andaily
|
|
spring.datasource.password=andaily
|
|
#Datasource properties
|
|
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
|
|
spring.datasource.hikari.maximum-pool-size=20
|
|
#spring.datasource.hikari.minimum-idle=2
|
|
#
|
|
# MVC
|
|
spring.thymeleaf.encoding=UTF-8
|
|
spring.thymeleaf.cache=false
|
|
#
|
|
server.port=8080
|
|
#
|
|
# oauth2 custom issuer, since v3.0.0
|
|
spring.security.oauth2.authorizationserver.issuer=http://127.0.0.1:${server.port}
|
|
#
|
|
# Redis
|
|
#
|
|
#spring.redis.host=localhost
|
|
#spring.redis.port=6379
|
|
#spring.redis.database=0
|
|
#spring.redis.password=
|
|
#spring.redis.timeout=2000
|
|
#spring.redis.ssl=false
|
|
#
|
|
# Condition Config
|
|
# @since 2.1.0
|
|
# Available TokenStore value: jdbc, jwt
|
|
#sos.token.store=jwt
|
|
# jwt key (length >= 16), optional
|
|
# @since 2.1.0
|
|
#sos.token.store.jwt.key=IH6S2dhCEMwGr7uE4fBakSuDh9SoIrRa
|
|
# reuse refreshToken, default true, optional
|
|
# @since 2.1.0
|
|
#sos.reuse.refresh-token=true
|
|
|
|
|