Jhipster アプリを heroku にデプロイした後、JHipster でクラウド Elasticsearch (Bonsai) を使用したいと考えています。Bonsai は次の環境変数を提供します。
$BONSAI_URL
これは application-prod.yml にどのように適切に追加されますか? ドキュメントを読んで、クラスターノードの値とホストとして設定しようとしました。しかし、私は少し迷っています。どんなヒントでも大歓迎です。
アプリケーション-prod.yml
spring:
devtools:
restart:
enabled: false
livereload:
enabled: false
datasource:
url: jdbc:mysql://localhost:3306/App?useUnicode=true&characterEncoding=utf8&useSSL=false
name:
username: root
password:
hikari:
data-source-properties:
cachePrepStmts: true
prepStmtCacheSize: 250
prepStmtCacheSqlLimit: 2048
useServerPrepStmts: true
jpa:
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
database: MYSQL
show_sql: false
properties:
hibernate.cache.use_second_level_cache: true
hibernate.cache.use_query_cache: false
hibernate.generate_statistics: false
hibernate.cache.region.factory_class: org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory
data:
elasticsearch:
network:
host: ${BONSAI_URL}
cluster-name: VLT
cluster-nodes: localhost:9300
mail:
host: smtp.sendgrid.net
port: 587
username: ${SENDGRID_USERNAME}
password: ${SENDGRID_PASSWORD}
protocol: smtp
tls: false
auth: true
from: noreply@app.com
thymeleaf:
cache: true
liquibase:
contexts: prod
server:
port: 8080
compression:
enabled: true
mime-types: text/html,text/xml,text/plain,text/css, application/javascript, application/json
min-response-size: 1024