From 5b15cbee3b79b8a3480e89c01940ef67f6f1e9ec Mon Sep 17 00:00:00 2001 From: jkuensem <jkuensem@physik.uni-bielefeld.de> Date: Wed, 18 Dec 2019 17:46:02 +0100 Subject: [PATCH] LEI-40: Updated routing config for serving LSMR --- SAS/LSMR/docker/lsmr-testenv/nginx.conf | 2 +- SAS/LSMR/src/lsmr/urls.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SAS/LSMR/docker/lsmr-testenv/nginx.conf b/SAS/LSMR/docker/lsmr-testenv/nginx.conf index 7e1da01d714..5f9f019accc 100644 --- a/SAS/LSMR/docker/lsmr-testenv/nginx.conf +++ b/SAS/LSMR/docker/lsmr-testenv/nginx.conf @@ -5,7 +5,7 @@ http { listen 5000; proxy_http_version 1.1; - proxy_set_header Host $host; + proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header X-Real-IP $remote_addr; diff --git a/SAS/LSMR/src/lsmr/urls.py b/SAS/LSMR/src/lsmr/urls.py index 23ae0d77f1e..fb34c1730dd 100644 --- a/SAS/LSMR/src/lsmr/urls.py +++ b/SAS/LSMR/src/lsmr/urls.py @@ -16,6 +16,7 @@ Including another URLconf from django.contrib import admin from django.urls import path, re_path +from django.conf.urls import url, include from django.views.generic.base import TemplateView from rest_framework import routers, permissions @@ -141,4 +142,4 @@ router.register(r'task_blueprint_B', viewsets.TaskBlueprintViewSetReactJSONform) router.register(r'task_blueprint_C', viewsets.TaskBlueprintViewSetJSONeditorOnline) #router.register(r'json_editor', viewsets.JSONEditorViewSet) -urlpatterns.extend(router.urls) +urlpatterns += [url(r'^api/', include(router.urls))] -- GitLab