summaryrefslogtreecommitdiffstats
path: root/rulemgt-standalone/src/main/assembly/nginx.conf
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2018-11-05 17:05:02 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2018-11-05 17:05:02 +0800
commit9d667bd7ceaa1647511c662bbaa73a358135d57b (patch)
tree2c6c1afc8662f040aad76c72c174a295f1048688 /rulemgt-standalone/src/main/assembly/nginx.conf
parent55f31e3560e5e3eae31dea757b8bfb19a7234835 (diff)
Updated the GUI to HTTPS
Change-Id: Id981dbe228750727e1130756585577c82369d1ba Issue-ID: HOLMES-181 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt-standalone/src/main/assembly/nginx.conf')
-rw-r--r--rulemgt-standalone/src/main/assembly/nginx.conf13
1 files changed, 13 insertions, 0 deletions
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;
}
}