change application.properties $ standalone for separate postgres
[usecase-ui/server.git] / server / src / main / resources / application.properties
1 ##
2 ## Copyright (C) 2017 CMCC, Inc. and others. All rights reserved.
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=512MB
20 spring.servlet.multipart.max-file-size=512MB
21 spring.http.multipart.max-request-size=512MB
22 spring.servlet.multipart.max-request-size=512MB
23
24 ## App DB Properties
25 spring.datasource.url=jdbc:postgresql://${POSTGRES_IP:127.0.0.1}:${POSTGRES_PORT:5432}/${POSTGRES_DB_NAME:uui}
26 spring.datasource.username=${POSTGRES_USERNAME:uui}
27 spring.datasource.password=${POSTGRES_PASSWORD:uui}
28 spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL9Dialect
29 spring.database.driver.classname=org.postgresql.Driver
30 spring.jpa.show-sql=false
31 spring.jpa.properties.hibernate.format_sql=false
32 spring.jpa.properties.hibernate.show-sql=false
33 spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
34 spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false
35 spring.jpa.properties.hibernate.current_session_context_class=org.springframework.orm.hibernate5.SpringSessionContext
36 spring.jpa.properties.hibernate.cache.use_second_level_cache=false
37 spring.jpa.properties.hibernate.cache.use_query_cache=false
38 #spring.jpa.properties.hibernate.allow_update_outside_transaction=true
39
40 ## Basic Authentication Properties
41 # security.user.name=usecase
42 # security.user.password=usecase
43
44 ## Logback Properties
45 logging.file.name=logs/usecaseui_server.log
46 logging.level.*=ERROR
47
48 #enable shutdown
49 endpoints.shutdown.enabled=true
50 endpoints.shutdown.sensitive=false
51
52 server.ssl.protocol=TLS
53 server.ssl.key-store=classpath:keystore/uuiServer.jks
54 server.ssl.key-store-password=Aa123456
55 server.ssl.key-store-type=JKS