application.properties 1.95 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/
Matt Wise's avatar
Matt Wise committed
18
19
AUTHORIZE_API=${ENTITLEMENTS_BASE_URL}/api/entitlements/v1

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

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

31
32
33
  ## Default Elasticsearch Settings
ELASTIC_HOST=""
ELASTIC_PORT=0
ethiraj krishnamanaidu's avatar
ethiraj krishnamanaidu committed
34
35
aws.es.host=${ELASTIC_HOST}
aws.es.port=${ELASTIC_PORT}
David Diederich's avatar
David Diederich committed
36
aws.es.userNameAndPassword=notused
ethiraj krishnamanaidu's avatar
ethiraj krishnamanaidu committed
37
aws.es.serviceName=notused
David Diederich's avatar
David Diederich committed
38
39
40
aws.region=${AWS_REGION}

## AWS Lambda configuration
ethiraj krishnamanaidu's avatar
ethiraj krishnamanaidu committed
41
aws.lambda.get-groups-function-name=${ENVIRONMENT}-os-entitlements-GroupsFunction
42
43
44
45
## 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
46
47
48
# Azure search query properties
QUERY_DEFAULT_LIMIT=10
QUERY_LIMIT_MAXIMUM=1000
49
50
51
52
53
54
55
56
57
AGGREGATION_SIZE=1000

awsParameterStorePropertySource.enabled=true

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

aws.elasticsearch.host=${aws.ssm.prefix}/elastic-search/end-point
aws.elasticsearch.port=${aws.ssm.prefix}/elastic-search/end-point-port