EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 4680f3f1 authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Updating http-access

Enabling feed result link generator for http access
parent eaf77df4
No related branches found
No related tags found
1 merge request!11http access links in OpenSearch
Pipeline #21509 passed
......@@ -37,6 +37,7 @@ htmlcov/*
junit*.xml
coverage.xml
.pytest_cache/
.mypy_cache
# Build and docs folder/files
build/*
......
......@@ -63,10 +63,11 @@
sed -e "s/SECRET_KEY = '.*'/SECRET_KEY = '${DJANGO_SECRET_KEY}'/" -i pvs_instance/settings.py
chmod g+w -R .
chgrp users -R .
if [[ "$ENABLE_HTTP_ACCESS" = true ]] ; then
echo "Installing and enabling http_access"
echo "INSTALLED_APPS += ('http_access', )" >> pvs_instance/settings.py
echo "EOXS_RESULT_ITEM_FEED_LINK_GENERATORS = ['http_access.opensearch.HttpAccessResultItemFeedLinkGenerator']" >> pvs_instance/settings.py
echo "urlpatterns.append(re_path(r'^http/', include('http_access.urls')))" >> pvs_instance/urls.py
fi
......@@ -74,7 +75,7 @@
echo "DEBUG ON Setting functions"
echo "MIDDLEWARE.append('pyinstrument.middleware.ProfilerMiddleware')" >> pvs_instance/settings.py
sed -e 's/DEBUG = False/DEBUG = True/' -i pvs_instance/settings.py
var="import os
import sys
import debugpy
......
......@@ -7,4 +7,4 @@ jsonschema<5.0
boto3<2.0
django-cors-headers<4.0
pystac<2.0
http-access==0.0.1
http-access==0.1.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment