diff --git a/SAS/LSMR/docker/lsmr-testenv/nginx.conf b/SAS/LSMR/docker/lsmr-testenv/nginx.conf index 7e1da01d714c6f4800c8f1f526738ef7a17be3fb..5f9f019accc82f68505ce01567465a8f0a37fce4 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 23ae0d77f1ecc87920f04c2fee27fddb62407788..fb34c1730dd9c5c7d948b77ccf73e25d3fa499e0 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))]