1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2024-07-01 10:33:47 +02:00
dspace-statistics-api/dspace_statistics_api/config.py

22 lines
821 B
Python
Raw Normal View History

import os
# Check if Solr connection information was provided in the environment
2019-11-27 11:30:06 +01:00
SOLR_SERVER = os.environ.get("SOLR_SERVER", "http://localhost:8080/solr")
2019-11-27 11:30:06 +01: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")
# SwaggerUI configuration
# URI path where the Swagger UI should be available (without trailing slash)
SWAGGERUI_URL = os.environ.get("SWAGGERUI_URL", "/swagger")
# URI path to the OpenAPI JSON schema
SWAGGERUI_SCHEMA_URL = os.environ.get("SWAGGERUI_SCHEMA_URL", "/docs/openapi.json")
VERSION = "1.4.0-dev"
# vim: set sw=4 ts=4 expandtab: