From 9d667bd7ceaa1647511c662bbaa73a358135d57b Mon Sep 17 00:00:00 2001 From: GuangrongFu Date: Mon, 5 Nov 2018 17:05:02 +0800 Subject: Updated the GUI to HTTPS Change-Id: Id981dbe228750727e1130756585577c82369d1ba Issue-ID: HOLMES-181 Signed-off-by: GuangrongFu --- rulemgt-standalone/src/main/assembly/nginx.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'rulemgt-standalone/src/main/assembly/nginx.conf') diff --git a/rulemgt-standalone/src/main/assembly/nginx.conf b/rulemgt-standalone/src/main/assembly/nginx.conf index 3714419..a41168a 100644 --- a/rulemgt-standalone/src/main/assembly/nginx.conf +++ b/rulemgt-standalone/src/main/assembly/nginx.conf @@ -27,9 +27,18 @@ http { keepalive_timeout 65; + ssl_session_cache shared:SSL:10m; + ssl_session_timeout 10m; + server { listen 9104; server_name localhost; + return 302 https://$server_name$request_uri; + } + + server { + listen 9105 ssl; + server_name localhost; location / { root /usr/local/openresty/nginx/html; @@ -39,5 +48,9 @@ http { add_header Cache-Control no-cache; root html; } + + ssl_certificate /etc/ssl/certs/holmes-frontend-selfsigned.crt; + ssl_certificate_key /etc/ssl/private/holmes-frontend.key; + ssl_dhparam /etc/ssl/certs/dhparam.pem; } } -- cgit 1.2.3-korg