application.properties 2.82 KB
Newer Older
Matt Wise's avatar
Matt Wise committed
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.

David Diederich's avatar
David Diederich committed
15
16
17
LOG_PREFIX=search

server.servlet.contextPath=/api/search/v2/
Spencer Sutton's avatar
Spencer Sutton committed
18
AUTHORIZE_API=${ENTITLEMENTS_BASE_URL}/api/entitlements/v2
Matt Wise's avatar
Matt Wise committed
19

Matt Wise's avatar
Matt Wise committed
20
21
logging.level.org.springframework.web=${LOG_LEVEL:INFO}
server.port=${APPLICATION_PORT:8080}
David Diederich's avatar
David Diederich committed
22
23

## AWS ElastiCache configuration
24
25
aws.elasticache.cluster.cursor.endpoint=${CACHE_CLUSTER_ENDPOINT}
aws.elasticache.cluster.cursor.port=${CACHE_CLUSTER_PORT}
Yunhua Koglin's avatar
Yunhua Koglin committed
26
aws.elasticache.cluster.cursor.key=${CACHE_CLUSTER_KEY}
David Diederich's avatar
David Diederich committed
27
aws.elasticache.cluster.cursor.expiration=60
28
29
aws.elasticache.cluster.index.endpoint=${CACHE_CLUSTER_ENDPOINT}
aws.elasticache.cluster.index.port=${CACHE_CLUSTER_PORT}
David Diederich's avatar
David Diederich committed
30
31
aws.elasticache.cluster.index.expiration=60

32
  ## Default Elasticsearch Settings
Matt Wise's avatar
Matt Wise committed
33
34
35
36
37
aws.es.host=${ELASTIC_HOST:}
aws.es.port=${ELASTIC_PORT:0}
aws.es.isHttps=${ELASTIC_HTTPS:true}
aws.es.username=${ELASTIC_USERNAME:empty}
aws.es.password=${ELASTIC_PASSWORD:empty}
David Diederich's avatar
David Diederich committed
38
aws.region=${AWS_REGION}
Matt Wise's avatar
Matt Wise committed
39
40
aws.es.serviceName=es
aws.es.certificate.disableTrust=${ELASTIC_DISABLE_CERTIFICATE_TRUST:false}
David Diederich's avatar
David Diederich committed
41
42

## AWS Lambda configuration
ethiraj krishnamanaidu's avatar
ethiraj krishnamanaidu committed
43
aws.lambda.get-groups-function-name=${ENVIRONMENT}-os-entitlements-GroupsFunction
44
45
46
47
## Default DynamoDB Settings
aws.dynamodb.table.prefix=${ENVIRONMENT}-
aws.dynamodb.region=${AWS_REGION}
aws.dynamodb.endpoint=dynamodb.${AWS_REGION}.amazonaws.com
David Diederich's avatar
David Diederich committed
48
49
50
# Azure search query properties
QUERY_DEFAULT_LIMIT=10
QUERY_LIMIT_MAXIMUM=1000
51
52
53
54
55
56
57
AGGREGATION_SIZE=1000

awsParameterStorePropertySource.enabled=true

aws.ssm=${SSM_ENABLED}
aws.ssm.prefix=/osdu/${ENVIRONMENT}

Matt Wise's avatar
Matt Wise committed
58
59
aws.elasticsearch.host=${aws.ssm.prefix}/elasticsearch/end-point
aws.elasticsearch.port=${aws.ssm.prefix}/elasticsearch/end-point-port
60
aws.elasticsearch.credentials.secret=${aws.ssm.prefix}/elasticsearch/credentials
Spencer Sutton's avatar
SSL AWS    
Spencer Sutton committed
61
62
63
64
65
66

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:}
Alok Joshi's avatar
Alok Joshi committed
67
server.ssl.key-store-password=${SSL_KEY_STORE_PASSWORD:}
68
69

# Policy service properties
70
service.policy.enabled=true
Alok Joshi's avatar
Alok Joshi committed
71
72
service.policy.endpoint=${ENTITLEMENTS_BASE_URL}/api/policy/v1
service.policy.id=search
73
PARTITION_API=${ENTITLEMENTS_BASE_URL}/api/partition/v1
74
aws.environment=${ENVIRONMENT}
Spencer Sutton's avatar
Spencer Sutton committed
75
76

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