application.properties 1.91 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Copyright © 2020 Amazon Web Services
# Licensed 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.

LOG_PREFIX=partition
15
server.servlet.contextPath=/api/partition/v1
16
logging.level.org.springframework.web=${LOG_LEVEL:INFO}
17
server.port=${APPLICATION_PORT:8080}
18
19
spring.data.redis.repositories.enabled=false
springfox.documentation.swagger.v2.path=/api-docs
20
ACCEPT_HTTP=true
21

Rucha Deshpande's avatar
Rucha Deshpande committed
22
AUTHORIZE_API=${ENTITLEMENTS_BASE_URL}/api/entitlements/v2
23
24
25
26
27
28
29
30
31
32
33
34
35
36

#logging configuration
logging.transaction.enabled=true
logging.slf4jlogger.enabled=true

aws.resource.prefix=${ENVIRONMENT}

## AWS DynamoDB configuration
## These are not used right now by partition service, but core-lib tenantfactory crashes if they're not set
aws.dynamodb.key=id
aws.dynamodb.table.prefix=${ENVIRONMENT}-
aws.dynamodb.region=${AWS_REGION}
aws.dynamodb.endpoint=dynamodb.${AWS_REGION}.amazonaws.com

37
38
39

aws.environment=${ENVIRONMENT}

40
41
## AWS ElastiCache configuration
aws.elasticache.cluster.endpoint=${CACHE_CLUSTER_ENDPOINT}
42
aws.elasticache.cluster.port=${CACHE_CLUSTER_PORT}
Yunhua Koglin's avatar
Yunhua Koglin committed
43
aws.elasticache.cluster.key=${CACHE_CLUSTER_KEY}
44
45
46
47
48
49

server.ssl.enabled=${SSL_ENABLED:true}
server.ssl.key-store-type=PKCS12
server.ssl.key-store=${SSL_KEY_STORE_PATH:/certs/osduonaws.p12}
server.ssl.key-alias=${SSL_KEY_ALIAS:osduonaws}
server.ssl.key-password=${SSL_KEY_PASSWORD:}
Spencer Sutton's avatar
Spencer Sutton committed
50
51
52
server.ssl.key-store-password=${SSL_KEY_STORE_PASSWORD:}

spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration