From ecdbb1c2b39af2fcccc811c8de500d252391d396 Mon Sep 17 00:00:00 2001 From: lrdossan Date: Mon, 24 Jun 2024 17:47:07 +0200 Subject: [PATCH] added redirect --- app-config/caimira-public-docker-image/run_caimira.sh | 1 + app-config/nginx/nginx.conf | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app-config/caimira-public-docker-image/run_caimira.sh b/app-config/caimira-public-docker-image/run_caimira.sh index f21e37ad..00a61542 100755 --- a/app-config/caimira-public-docker-image/run_caimira.sh +++ b/app-config/caimira-public-docker-image/run_caimira.sh @@ -5,5 +5,6 @@ echo 'Please see https://gitlab.cern.ch/caimira/caimira for terms of use.' # Run a proxy for the apps (listening on 8080). nginx -c /opt/caimira/nginx.conf +cd /opt/caimira/src/caimira # Run the calculator in the foreground. /opt/caimira/app/bin/python -m caimira.apps.calculator --port 8081 --no-debug diff --git a/app-config/nginx/nginx.conf b/app-config/nginx/nginx.conf index d153b36c..3b447fe9 100644 --- a/app-config/nginx/nginx.conf +++ b/app-config/nginx/nginx.conf @@ -73,6 +73,9 @@ http { proxy_pass http://calculator-app:8080/$request_uri; } + # Redirect URLs to the new scheme. + absolute_redirect off; + location / { # By default we have no authentication. proxy_pass http://calculator-app:8080;