From 694840790ba7d15321875701c3c37dedf9d3c4a5 Mon Sep 17 00:00:00 2001 From: Clement Michaud Date: Sat, 19 Jan 2019 11:31:47 +0100 Subject: [PATCH] Redirect to https://login.example.com to avoid errors due to https://localhost --- example/compose/nginx/portal/nginx.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/example/compose/nginx/portal/nginx.conf b/example/compose/nginx/portal/nginx.conf index 2ac6d384..bc8d9e5f 100644 --- a/example/compose/nginx/portal/nginx.conf +++ b/example/compose/nginx/portal/nginx.conf @@ -5,6 +5,16 @@ events { } http { + server { + listen 443 ssl; + server_name _; + + ssl_certificate /etc/ssl/server.crt; + ssl_certificate_key /etc/ssl/server.key; + + return 301 https://home.example.com:8080/; + } + server { listen 443 ssl; server_name login.example.com;