2021-03-22 13:42:42 +02:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
|
2018-09-18 16:59:28 +03:00
|
|
|
import os
|
|
|
|
|
|
|
|
# Check if Solr connection information was provided in the environment
|
2019-11-27 12:30:06 +02:00
|
|
|
SOLR_SERVER = os.environ.get("SOLR_SERVER", "http://localhost:8080/solr")
|
2018-09-23 11:33:26 +03:00
|
|
|
|
2019-11-27 12:30:06 +02:00
|
|
|
DATABASE_NAME = os.environ.get("DATABASE_NAME", "dspacestatistics")
|
|
|
|
DATABASE_USER = os.environ.get("DATABASE_USER", "dspacestatistics")
|
|
|
|
DATABASE_PASS = os.environ.get("DATABASE_PASS", "dspacestatistics")
|
|
|
|
DATABASE_HOST = os.environ.get("DATABASE_HOST", "localhost")
|
|
|
|
DATABASE_PORT = os.environ.get("DATABASE_PORT", "5432")
|
2018-09-23 16:47:00 +03:00
|
|
|
|
2020-12-23 13:25:17 +02:00
|
|
|
# URL to DSpace Statistics API, which will be used as a prefix to API calls in
|
|
|
|
# the Swagger UI. An empty string will allow this to work out of the box in a
|
|
|
|
# local development environment, but for production it should be set to a value
|
|
|
|
# like "/rest/statistics", assuming that the statistics API is deployed next to
|
|
|
|
# the vanilla DSpace REST API.
|
|
|
|
DSPACE_STATISTICS_API_URL = os.environ.get("DSPACE_STATISTICS_API_URL", "")
|
2020-12-22 12:50:03 +02:00
|
|
|
|
2021-01-14 14:19:50 +02:00
|
|
|
VERSION = "1.4.1"
|
2020-12-22 11:30:09 +02:00
|
|
|
|
2018-09-23 11:33:26 +03:00
|
|
|
# vim: set sw=4 ts=4 expandtab:
|