From 4e6e19efc1c30306415d1f84ddd09557b91b819d Mon Sep 17 00:00:00 2001 From: Firmlyzhu Date: Sat, 22 Dec 2018 18:35:54 +0800 Subject: [PATCH] Forbid Options method & update bootstrap url --- conf/nginx_docklet.conf | 6 +++--- web/templates/addCluster.html | 2 +- web/templates/beansapplication.html | 2 +- web/templates/config.html | 2 +- web/templates/monitor/historyVNode.html | 2 +- web/templates/monitor/status.html | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/conf/nginx_docklet.conf b/conf/nginx_docklet.conf index d97042a..d968278 100644 --- a/conf/nginx_docklet.conf +++ b/conf/nginx_docklet.conf @@ -2,8 +2,8 @@ server { listen %NGINX_PORT; #ssl on; - #ssl_certificate /etc/nginx/ssl/1604242_iwork.pku.edu.cn.pem; - #ssl_certificate_key /etc/nginx/ssl/1604242_iwork.pku.edu.cn.key; + #ssl_certificate /etc/nginx/ssl/server.crt; + #ssl_certificate_key /etc/nginx/ssl/server.key; server_name nginx_docklet.conf; charset UTF-8; add_header X-Frame-Options SAMEORIGIN; @@ -11,7 +11,7 @@ server rewrite (.*)//+(.*) $1/$2 permanent; index index.html index.htm; client_max_body_size 20m; - if ($request_method !~* GET|POST){ + if ($request_method ~* OPTIONS){ return 403; } location ~ ^/NginxStatus/ { diff --git a/web/templates/addCluster.html b/web/templates/addCluster.html index e91c566..f56e8cf 100644 --- a/web/templates/addCluster.html +++ b/web/templates/addCluster.html @@ -166,7 +166,7 @@ - + - + diff --git a/web/templates/config.html b/web/templates/config.html index 2020582..9db2390 100755 --- a/web/templates/config.html +++ b/web/templates/config.html @@ -450,7 +450,7 @@ {% block script_src %} - + - + - +