Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
89cc7d05
Commit
89cc7d05
authored
Apr 26, 2021
by
carlosribas
Browse files
Add EBI_SEARCH_ENDPOINT environment variable
parent
7c5ae1cb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
.env-example
.env-example
+4
-3
docker-compose.yml
docker-compose.yml
+1
-0
entrypoint.sh
entrypoint.sh
+2
-0
rnacentral/rnacentral/settings.py
rnacentral/rnacentral/settings.py
+5
-2
No files found.
.env-example
View file @
89cc7d05
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
docker-compose.yml
View file @
89cc7d05
...
...
@@ -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
:
...
...
entrypoint.sh
View file @
89cc7d05
...
...
@@ -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
...
...
rnacentral/rnacentral/settings.py
View file @
89cc7d05
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment