43 lines
1.5 KiB
Properties
43 lines
1.5 KiB
Properties
# 应用配置
|
|||
|
|
spring.application.name=polymarket-bot-backend
|
||
|
|
|
||
|
|
# 数据源配置
|
||
|
|
spring.datasource.url=jdbc:mysql://localhost:3306/polymarket_bot?useSSL=false&serverTimezone=UTC&characterEncoding=utf8&allowPublicKeyRetrieval=true
|
||
|
|
spring.datasource.username=${DB_USERNAME:root}
|
||
|
|
spring.datasource.password=${DB_PASSWORD:11111111}
|
||
|
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||
|
|
|
||
|
|
# HikariCP 连接池配置
|
||
|
|
spring.datasource.hikari.maximum-pool-size=10
|
||
|
|
spring.datasource.hikari.minimum-idle=2
|
||
|
|
spring.datasource.hikari.connection-timeout=30000
|
||
|
|
|
||
|
|
# JPA 配置
|
||
|
|
spring.jpa.hibernate.ddl-auto=validate
|
||
|
|
spring.jpa.show-sql=false
|
||
|
|
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
|
||
|
|
|
||
|
|
# Flyway 配置
|
||
|
|
spring.flyway.enabled=true
|
||
|
|
spring.flyway.locations=classpath:db/migration
|
||
|
|
spring.flyway.baseline-on-migrate=true
|
||
|
|
|
||
|
|
# 服务器配置
|
||
|
|
server.port=${SERVER_PORT:8000}
|
||
|
|
|
||
|
|
# 日志配置
|
||
|
|
logging.level.root=INFO
|
||
|
|
logging.level.com.wrbug.polymarketbot=DEBUG
|
||
|
|
logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} - %msg%n
|
||
|
|
|
||
|
|
# Polymarket API 配置
|
||
|
|
polymarket.clob.base-url=https://clob.polymarket.com
|
||
|
|
polymarket.rtds.ws-url=wss://ws-live-data.polymarket.com
|
||
|
|
polymarket.data-api.base-url=https://data-api.polymarket.com
|
||
|
|
|
||
|
|
# Ethereum RPC 配置(用于查询链上余额)
|
||
|
|
# 可选:如果未配置,将无法查询 USDC 余额,但仍可通过 Subgraph API 查询持仓
|
||
|
|
# 示例:https://polygon-rpc.com 或 https://polygon-mainnet.infura.io/v3/YOUR_PROJECT_ID
|
||
|
|
ethereum.rpc.url=${ETHEREUM_RPC_URL:https://polygon-rpc.com}
|
||
|
|
|