Commit 89cc7d05 authored by carlosribas's avatar carlosribas
Browse files

Add EBI_SEARCH_ENDPOINT environment variable

parent 7c5ae1cb
S3_HOST=https://example.com
S3_KEY=RNAcentral_key
S3_SECRET=RNAcentral_secret
SECRET_KEY=super_secret_key
DJANGO_DEBUG=True
LOCAL_DEVELOPMENT=True
\ No newline at end of file
EBI_SEARCH_ENDPOINT=http://example.com # if not specified, www will be used
SECRET_KEY=super_secret_key # if not specified, it uses get_random_secret_key
DJANGO_DEBUG=True # if not specified, it uses DJANGO_DEBUG=False
LOCAL_DEVELOPMENT=True # use this variable if you need the django-debug-toolbar, coverage and mock packages
\ No newline at end of file
......@@ -18,6 +18,7 @@ services:
- S3_HOST=${S3_HOST}
- S3_KEY=${S3_KEY}
- S3_SECRET=${S3_SECRET}
- EBI_SEARCH_ENDPOINT=${EBI_SEARCH_ENDPOINT}
expose:
- 8000
volumes:
......
......@@ -14,6 +14,7 @@ DB_PASSWORD=${DB_PASSWORD:-'NWDMCE5xdipIjRrp'}
# RNAcentral specific settings
SECRET_KEY=${SECRET_KEY:-$(python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())')}
DJANGO_DEBUG=${DJANGO_DEBUG:-'False'}
EBI_SEARCH_ENDPOINT=${EBI_SEARCH_ENDPOINT:-'http://www.ebi.ac.uk/ebisearch/ws/rest/rnacentral'}
S3_HOST=${S3_HOST}
S3_KEY=${S3_KEY}
S3_SECRET=${S3_SECRET}
......@@ -34,6 +35,7 @@ else
import os
from .utils import get_environment
SECRET_KEY = "$SECRET_KEY"
EBI_SEARCH_ENDPOINT = "$EBI_SEARCH_ENDPOINT"
ENVIRONMENT = get_environment()
INTERNAL_IPS = ('127.0.0.1', '192.168.99.1')
COMPRESS_ENABLED = False
......
......@@ -344,7 +344,7 @@ MARKDOWN_DEUX_STYLES = {
SILENCED_SYSTEM_CHECKS = ['1_6.W001']
EBI_SEARCH_ENDPOINT = 'http://www.ebi.ac.uk/ebisearch/ws/rest/rnacentral'
EBI_SEARCH_ENDPOINT = os.getenv('EBI_SEARCH_ENDPOINT', 'http://www.ebi.ac.uk/ebisearch/ws/rest/rnacentral')
RELEASE_ANNOUNCEMENT_URL = 'https://blog.rnacentral.org/2021/03/rnacentral-release-17.html'
......@@ -362,4 +362,7 @@ COMPRESS_CSS_FILTERS = [
# Use a simplified runner to prevent any modifications to the database.
TEST_RUNNER = 'portal.tests.runner.FixedRunner'
from .local_settings import * # pylint: disable=W0401, W0614
try:
from .local_settings import *
except ImportError:
pass
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment