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;