From 2fd28ca5c8719564fe29f5bf63f6dbcc993a9817 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期四, 02 十二月 2021 21:07:43 +0800
Subject: [PATCH] update 更新 nginx 演示环境配置

---
 script/docker/nginx/nginx.conf |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/script/docker/nginx/nginx.conf b/script/docker/nginx/nginx.conf
index b4ba031..ddd3ecc 100644
--- a/script/docker/nginx/nginx.conf
+++ b/script/docker/nginx/nginx.conf
@@ -52,6 +52,16 @@
         #ssl_prefer_server_ciphers on;
         # https閰嶇疆鍙傝�� end
 
+        # 婕旂ず鐜閰嶇疆 鎷︽埅闄� GET POST 涔嬪鐨勬墍鏈夎姹�
+        # if ($request_method !~* GET|POST) {
+        #     rewrite  ^/(.*)$  /403;
+        # }
+
+        # location = /403 {
+        #     default_type application/json;
+        #     return 200 '{"msg":"婕旂ず妯″紡锛屼笉鍏佽鎿嶄綔","code":500}';
+        # }
+
 		location / {
             root   /usr/share/nginx/html;
 			try_files $uri $uri/ /index.html;

--
Gitblit v1.9.3