aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/uui/components/uui-server/resources/config/application.properties
diff options
context:
space:
mode:
authorJunyiDu <hunterdevil@foxmail.com>2022-09-28 16:56:13 +0800
committerJunyiDu <hunterdevil@foxmail.com>2022-11-03 10:36:42 +0800
commite3fccd47d83f31fb5ac18943dc6d00b586d95800 (patch)
tree3c474a84b1765e2761ab684068c32fe5a7bec16b /kubernetes/uui/components/uui-server/resources/config/application.properties
parent1712ea65fb6d28e88bcf579dad6b980ea002432e (diff)
[UUI] New Solve 2 components in one Docker
1.add postgres env in uui-server 2.use oom common postgres Signed-off-by: dujunyi <hunterdevil@foxmail.com> Issue-ID: USECASEUI-405 Change-Id: Id72a11f5b8574ff566061fcdfe98663107b6de2f
Diffstat (limited to 'kubernetes/uui/components/uui-server/resources/config/application.properties')
-rw-r--r--kubernetes/uui/components/uui-server/resources/config/application.properties10
1 files changed, 5 insertions, 5 deletions
diff --git a/kubernetes/uui/components/uui-server/resources/config/application.properties b/kubernetes/uui/components/uui-server/resources/config/application.properties
index 37f8467df1..ee531dc741 100644
--- a/kubernetes/uui/components/uui-server/resources/config/application.properties
+++ b/kubernetes/uui/components/uui-server/resources/config/application.properties
@@ -1,5 +1,5 @@
##
-## Copyright (C) 2017 CMCC, Inc. and others. All rights reserved.
+## Copyright (C) 2022 CMCC, Inc. and others. All rights reserved.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
@@ -20,9 +20,9 @@ spring.http.multipart.max-file-size=128MB
spring.http.multipart.max-request-size=128MB
## App DB Properties
-spring.datasource.url=jdbc:postgresql://localhost:5432/uui
-spring.datasource.username=uui
-spring.datasource.password=uui
+spring.datasource.url=jdbc:postgresql://${POSTGRES_IP:127.0.0.1}:${POSTGRES_PORT:5432}/${POSTGRES_DB_NAME:uui}
+spring.datasource.username=${POSTGRES_USERNAME}
+spring.datasource.password=${POSTGRES_PASSWORD}
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL9Dialect
spring.database.driver.classname=org.postgresql.Driver
spring.jpa.show-sql=false
@@ -50,4 +50,4 @@ endpoints.shutdown.sensitive=false
server.ssl.protocol=TLS
server.ssl.key-store={{ .Values.certInitializer.credsPath }}/{{ .Values.certInitializer.fqi_namespace }}.p12
server.ssl.key-store-password=${KEYSTORE_PASSWORD}
-server.ssl.key-store-type=PKCS12 \ No newline at end of file
+server.ssl.key-store-type=PKCS12