blob: fa1b35ab4cc5a8f1f40dae45f1cc388311ac5597 [file] [log] [blame]
## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## ---------------------------------------------------------------------------
server:
port: 8090
alpha:
server:
host: 0.0.0.0
port: 8080
feature:
akka:
enabled: false
channel:
type: memory
spring:
datasource:
initialization-mode: always
main:
allow-bean-definition-overriding: true
cloud:
consul:
host: 0.0.0.0
port: 8500
discovery:
serviceName: {spring.application.name}
healthCheckPath: /actuator/health
healthCheckInterval: 10s
instanceId: ${spring.application.name}-${alpha.server.host}-${random.value}
tags: alpha-server-host=${alpha.server.host},alpha-server-port=${alpha.server.port}
eureka:
client:
enabled: false
instance:
metadataMap:
servicecomb-alpha-server: ${alpha.server.host}:${alpha.server.port}
akkaConfig:
akka.persistence.journal.plugin: akka.persistence.journal.inmem
akka.persistence.journal.leveldb.dir: target/example/journal
akka.persistence.snapshot-store.plugin: akka.persistence.snapshot-store.local
akka.persistence.snapshot-store.local.dir: target/example/snapshots
management:
endpoints:
web:
exposure:
include: "*"
---
spring:
profiles: ssl
alpha:
server:
ssl:
enable: true
cert: server.crt
key: server.pem
mutualAuth: true
clientCert: client.crt
---
spring:
profiles: prd
datasource:
username: saga
password: password
url: jdbc:postgresql://postgresql.servicecomb.io:5432/saga?useSSL=false
platform: postgresql
continue-on-error: false
jpa:
properties:
eclipselink:
ddl-generation: none
---
spring:
profiles: mysql
datasource:
username: saga
password: password
url: jdbc:mysql://mysql.servicecomb.io:3306/saga?useSSL=false
platform: mysql
continue-on-error: false
jpa:
properties:
eclipselink:
ddl-generation: none
---
spring:
profiles: akka-persistence-redis
akkaConfig:
akka.persistence.journal.plugin: akka-persistence-redis.journal
akka.persistence.snapshot-store.plugin: akka-persistence-redis.snapshot
akka-persistence-redis:
redis:
mode: simple
host: localhost
port: 6379
database: 0
#password: