forked from Azure-Samples/java-on-aks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
61 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,66 @@ | ||
# COMMON APPLICATION PROPERTIES | ||
|
||
server: | ||
# start services on random port by default | ||
# port: 0 | ||
# The stop processing uses a timeout which provides a grace period during which existing requests will be allowed to complete but no new requests will be permitted | ||
shutdown: graceful | ||
|
||
# embedded database init, supports mysql too trough the 'mysql' spring profile | ||
spring: | ||
datasource: | ||
url: jdbc:mysql:https://mysql--20240510.mysql.database.azure.com:3306/petclinic?useSSL=true | ||
username: myadmin | ||
password: Thisis1mysqlpassword | ||
sql: | ||
init: | ||
schema-locations: classpath*:db/mysql/schema.sql | ||
data-locations: classpath*:db/mysql/data.sql | ||
mode: ALWAYS | ||
sleuth: | ||
sampler: | ||
probability: 1.0 | ||
cloud: | ||
config: | ||
server: | ||
native: | ||
search-locations: classpath:/shared | ||
profiles: | ||
active: native | ||
security: | ||
user: | ||
password: ${CONFIG_SERVICE_PASSWORD} | ||
# Allow the microservices to override the remote properties with their own System properties or config file | ||
allow-override: true | ||
# Override configuration with any local property source | ||
override-none: true | ||
jpa: | ||
open-in-view: false | ||
hibernate: | ||
ddl-auto: none | ||
|
||
server: | ||
port: 8888 | ||
# Spring Boot 1.5 makes actuator secure by default | ||
management.security.enabled: false | ||
# Enable all Actuators and not only the two available by default /health and /info starting Spring Boot 2.0 | ||
management.endpoints.web.exposure.include: "*" | ||
|
||
# Temporary hack required by the Spring Boot 2 / Spring Cloud Finchley branch | ||
# Waiting issue https://github.com/spring-projects/spring-boot/issues/13042 | ||
spring.cloud.refresh.refreshable: false | ||
|
||
# Logging | ||
logging.level.org.springframework: INFO | ||
|
||
# Metrics | ||
management: | ||
endpoint: | ||
metrics: | ||
enabled: true | ||
prometheus: | ||
enabled: true | ||
endpoints: | ||
web: | ||
exposure: | ||
include: '*' | ||
metrics: | ||
export: | ||
prometheus: | ||
enabled: true | ||
eureka: | ||
client: | ||
serviceUrl: | ||
defaultZone: http:https://discovery-server:8761/eureka/ | ||
instance: | ||
preferIpAddress: true |