From c7246b3a84e7a9a9a6fc53cc0aedb11bd2783ff5 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期二, 06 二月 2024 17:44:53 +0800
Subject: [PATCH] update 优化 mybatis依赖设置为可选依赖 避免出现不应该注入的情况

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

diff --git a/script/docker/nginx/conf/nginx.conf b/script/docker/nginx/conf/nginx.conf
index 38c422a..0e9856a 100644
--- a/script/docker/nginx/conf/nginx.conf
+++ b/script/docker/nginx/conf/nginx.conf
@@ -68,7 +68,7 @@
         }
 
         location / {
-            root   /usr/share/nginx/html;
+            root   /usr/share/nginx/html; # docker鏄犲皠璺緞 涓嶅厑璁告洿鏀�
             try_files $uri $uri/ /index.html;
             index  index.html index.htm;
         }
@@ -78,6 +78,10 @@
             proxy_set_header X-Real-IP $remote_addr;
             proxy_set_header REMOTE-HOST $remote_addr;
             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+            # websocket鍙傛暟
+            proxy_http_version 1.1;
+            proxy_set_header Upgrade $http_upgrade;
+            proxy_set_header Connection "upgrade";
             proxy_pass http://server/;
         }
 
@@ -103,6 +107,11 @@
             proxy_pass http://powerjob-server/;
         }
 
+        # 瑙e喅 powerjob 浠g悊涔嬪悗闈欐�佹枃浠舵棤娉曡闂殑闂 璇峰嬁淇敼涔卞姩
+        location ~ ^/(js|img|fonts)/ {
+            proxy_pass http://powerjob-server;
+        }
+
         error_page   500 502 503 504  /50x.html;
         location = /50x.html {
             root   html;

--
Gitblit v1.9.3