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 %} - + - + - +