-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.py
28 lines (21 loc) · 1.01 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
LOG_STDOUT = True
LOGGING_LEVEL = "DEBUG"
ENV = "development"
PROXY_SERVER = "http://localhost:8184"
PROXY_PREFIX = "/v1/scan"
IMAGE_API_SERVER = 'http://localhost:8182'
IMAGE_API_BASE_PATH = '/iiif/2'
IMAGE_API_BASE_URL = f'{IMAGE_API_SERVER}{IMAGE_API_BASE_PATH}'
IMAGE_API_SLASH_SUB = '-~' # Must always correspond to the Cantaloupe setting CANTALOUPE_SLASH_SUBSTITUTE
IMAGE_PDF_MEMORY_LIMIT = 100*1024*1024 #Limit on memory used to create the pdf in bytes
IMAGE_PDF_PAGE_LIMIT = 100 # Limit pn number of pages which can be downloaded as pdf
SQLALCHEMY_DATABASE_URI = 'postgres://scan_explorer:scan_explorer@postgres_service/scan_explorer_service'
SQLALCHEMY_TRACK_MODIFICATIONS = False
OPEN_SEARCH_URL = 'http://opensearch-node1:9200'
OPEN_SEARCH_INDEX = 'scan-explorer'
ADS_SEARCH_SERVICE_URL = 'https://api.adsabs.harvard.edu/v1/search/query'
ADS_SEARCH_SERVICE_TOKEN = '<CHANGE ME>'
AWS_ACCESS_KEY_ID='<CHANGE ME>'
AWS_SECRET_ACCESS_KEY='<CHANGE ME>'
AWS_BUCKET_NAME_IMAGE='<CHANGE ME>'
AWS_BUCKET_NAME_PDF='<CHANGE ME>'