Sylvain Desbureaux | e6a1a37 | 2021-02-25 18:07:55 +0100 | [diff] [blame] | 1 | ## |
JunyiDu | e3fccd4 | 2022-09-28 16:56:13 +0800 | [diff] [blame] | 2 | ## Copyright (C) 2022 CMCC, Inc. and others. All rights reserved. |
Sylvain Desbureaux | e6a1a37 | 2021-02-25 18:07:55 +0100 | [diff] [blame] | 3 | ## |
| 4 | ## Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | ## you may not use this file except in compliance with the License. |
| 6 | ## You may obtain a copy of the License at |
| 7 | ## |
| 8 | ## http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | ## |
| 10 | ## Unless required by applicable law or agreed to in writing, software |
| 11 | ## distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | ## See the License for the specific language governing permissions and |
| 14 | ## limitations under the License. |
| 15 | ## |
| 16 | ## General App Properties |
| 17 | server.servlet.contextPath=/api/usecaseui-server/v1 |
| 18 | server.port=8082 |
| 19 | spring.http.multipart.max-file-size=128MB |
| 20 | spring.http.multipart.max-request-size=128MB |
| 21 | |
| 22 | ## App DB Properties |
JunyiDu | e3fccd4 | 2022-09-28 16:56:13 +0800 | [diff] [blame] | 23 | spring.datasource.url=jdbc:postgresql://${POSTGRES_IP:127.0.0.1}:${POSTGRES_PORT:5432}/${POSTGRES_DB_NAME:uui} |
| 24 | spring.datasource.username=${POSTGRES_USERNAME} |
| 25 | spring.datasource.password=${POSTGRES_PASSWORD} |
Sylvain Desbureaux | e6a1a37 | 2021-02-25 18:07:55 +0100 | [diff] [blame] | 26 | spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL9Dialect |
| 27 | spring.database.driver.classname=org.postgresql.Driver |
| 28 | spring.jpa.show-sql=false |
| 29 | spring.jpa.properties.hibernate.format_sql=false |
| 30 | spring.jpa.properties.hibernate.show-sql=false |
| 31 | spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true |
| 32 | spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false |
| 33 | spring.jpa.properties.hibernate.current_session_context_class=org.springframework.orm.hibernate5.SpringSessionContext |
| 34 | spring.jpa.properties.hibernate.cache.use_second_level_cache=false |
| 35 | spring.jpa.properties.hibernate.cache.use_query_cache=false |
| 36 | #spring.jpa.properties.hibernate.allow_update_outside_transaction=true |
| 37 | |
| 38 | ## Basic Authentication Properties |
| 39 | # security.user.name=usecase |
| 40 | # security.user.password=usecase |
| 41 | |
| 42 | ## Logback Properties |
| 43 | logging.file.name=logs/usecaseui_server.log |
| 44 | logging.level.*=INFO |
| 45 | |
| 46 | #enable shutdown |
| 47 | endpoints.shutdown.enabled=true |
| 48 | endpoints.shutdown.sensitive=false |
| 49 | |
Andreas Geissler | 22f3b16 | 2023-02-07 13:10:01 +0100 | [diff] [blame] | 50 | {{- if (include "common.needTLS" .) }} |
Sylvain Desbureaux | e6a1a37 | 2021-02-25 18:07:55 +0100 | [diff] [blame] | 51 | server.ssl.protocol=TLS |
| 52 | server.ssl.key-store={{ .Values.certInitializer.credsPath }}/{{ .Values.certInitializer.fqi_namespace }}.p12 |
| 53 | server.ssl.key-store-password=${KEYSTORE_PASSWORD} |
JunyiDu | e3fccd4 | 2022-09-28 16:56:13 +0800 | [diff] [blame] | 54 | server.ssl.key-store-type=PKCS12 |
Andreas Geissler | 22f3b16 | 2023-02-07 13:10:01 +0100 | [diff] [blame] | 55 | {{- end }} |