From 429728d0a08fd274ab59b85de60b938efa4d2012 Mon Sep 17 00:00:00 2001
From: Razique Mahroua <rmahroua@redhat.com>
Date: Sat, 30 Nov 2019 00:52:14 +0100
Subject: [PATCH] Add redirection from HTTP to HTTPS Update Dockerfile so the container can run in OpenShift

---
 todo-angular/nginx/nginx.conf |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/todo-angular/nginx/nginx.conf b/todo-angular/nginx/nginx.conf
index c153933..4aeca81 100644
--- a/todo-angular/nginx/nginx.conf
+++ b/todo-angular/nginx/nginx.conf
@@ -62,8 +62,9 @@
         error_page 500 502 503 504 /50x.html;
             location = /50x.html {
         }
-        # Comment the following to disable SSL support
-        error_page 497 https://$host:8443/$request_uri;
+        # Comment the following lines to disable SSL support
+        error_page 497 https://$host:8443$request_uri;
+        return 301 https://$host:8443$request_uri;
     }
 
 }

--
Gitblit v1.9.3