application.properties 2.21 KB
Newer Older
Spencer Sutton's avatar
SSL AWS    
Spencer Sutton committed
1
# Copyright � 2020 Amazon Web Services
Rucha Deshpande's avatar
Rucha Deshpande committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# 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=register
logging.level.org.springframework.web=${LOG_LEVEL:INFO}
server.servlet.contextPath=/api/register/v1
server.port=${APPLICATION_PORT:8080}
ACCEPT_HTTP=true

Rucha Deshpande's avatar
Rucha Deshpande committed
21

Rucha Deshpande's avatar
Rucha Deshpande committed
22
#Register service is using AppServiceConfig to define all env. variables. Here ENTITLEMENTS_API is used instead of AUTHORIZE_API
Rucha Deshpande's avatar
Rucha Deshpande committed
23
ENTITLEMENTS_API=${ENTITLEMENTS_BASE_URL}/api/entitlements/v2
24
PARTITION_API=${ENTITLEMENTS_BASE_URL}/api/partition/v1
Rucha Deshpande's avatar
Rucha Deshpande committed
25
26
## AWS DynamoDB configuration

27

28
29
30
aws.dynamodb.subscriptionTable.ssm.relativePath=${SUBSCRIPTION_SSM_RELATIVE_PATH:register/SubscriptionTable}
aws.dynamodb.ddmsTable.ssm.relativePath=${DDMS_SSM_RELATIVE_PATH:register/DdmsTable}
aws.dynamodb.actionTable.ssm.relativePath=${ACTION_SSM_RELATIVE_PATH:register/ActionTable}
Rucha Deshpande's avatar
Rucha Deshpande committed
31

32
aws.region=${AWS_REGION}
Rucha Deshpande's avatar
Rucha Deshpande committed
33
34
aws.kms.endpoint=kms.${AWS_REGION}.amazonaws.com
aws.ssm=${SSM_ENABLED:True}
35
36
37
38
aws.environment=${RESOURCE_PREFIX}
aws.parameter.prefix=/osdu/${RESOURCE_PREFIX}
#aws.register.sns.topic.arn=${aws.parameter.prefix}/register/register-sns-topic-arn
#aws.register.kms.key.id=${aws.parameter.prefix}/register/register-kms-key-id
Rucha Deshpande's avatar
Rucha Deshpande committed
39

40
#aws.records.changes.topic.arn=${RECORDS_CHANGED_TOPIC_ARN}
Rucha Deshpande's avatar
Rucha Deshpande committed
41
42
43
44
45
46
#logging configuration
logging.transaction.enabled=true
logging.slf4jlogger.enabled=true
logging.mdccontext.enabled=true

# if this is turned on then the service tries to connect to elastic search
Spencer Sutton's avatar
SSL AWS    
Spencer Sutton committed
47
48
49
50
51
52
53
54
management.health.elasticsearch.enabled=false

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:}
server.ssl.key-store-password=${SSL_KEY_STORE_PASSWORD:}