fix: refactor ClickHouse config to match cameleer3-server pattern
- Add ClickHouseProperties with @ConfigurationProperties - @ConditionalOnProperty to toggle ClickHouse - @Primary DataSource + JdbcTemplate for PostgreSQL (prevents Spring Boot from routing JPA/Flyway to ClickHouse) - HikariDataSource for ClickHouse with explicit credentials - Remove separate DataSourceConfig.java (merged into ClickHouseConfig) - Remove database-platform override (no longer needed with @Primary) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,12 @@ spring:
|
||||
url: jdbc:postgresql://localhost:5432/cameleer_saas
|
||||
user: cameleer
|
||||
password: cameleer_dev
|
||||
security:
|
||||
oauth2:
|
||||
resourceserver:
|
||||
jwt:
|
||||
issuer-uri: http://localhost:3001/oidc
|
||||
jwk-set-uri: http://localhost:3001/oidc/jwks
|
||||
|
||||
cameleer:
|
||||
clickhouse:
|
||||
|
||||
@@ -54,4 +54,7 @@ cameleer:
|
||||
cameleer3-server-endpoint: ${CAMELEER3_SERVER_ENDPOINT:http://cameleer3-server:8081}
|
||||
domain: ${DOMAIN:localhost}
|
||||
clickhouse:
|
||||
enabled: ${CLICKHOUSE_ENABLED:true}
|
||||
url: ${CLICKHOUSE_URL:jdbc:clickhouse://clickhouse:8123/cameleer}
|
||||
username: ${CLICKHOUSE_USERNAME:default}
|
||||
password: ${CLICKHOUSE_PASSWORD:}
|
||||
|
||||
Reference in New Issue
Block a user