Kaynağa Gözat

Merge branch 'master' of http://laoyanghome.cn:18081/jc-wangyt/netFlowPlatform

jc-wangyt 1 ay önce
ebeveyn
işleme
9a86937179
3 değiştirilmiş dosya ile 14 ekleme ve 30 silme
  1. 3 3
      dockerbuild.bat
  2. 11 26
      nginx.conf
  3. 0 1
      src/api/newApi/openMarketBid.js

+ 3 - 3
dockerbuild.bat

@@ -1,7 +1,7 @@
 docker build -t netflowplatform:latest ./ --platform=linux/arm64/v8 -f Dockerfile
 
-docker login --username=changqing7 10.130.16.8:30028 -p "Changqing7@2025!"
+docker login --username=bixx1 10.130.16.8:30028 -p "Sunym@1022"
 
-docker tag netflowplatform:latest 10.130.16.8:30028/hygl-hltest-ecr/netflowplatform:latest
+docker tag netflowplatform:latest 10.130.16.8:30028/szhzhzx-test/netflowplatform:latest
 
-docker push 10.130.16.8:30028/hygl-hltest-ecr/netflowplatform:latest
+docker push 10.130.16.8:30028/szhzhzx-test/netflowplatform:latest

+ 11 - 26
nginx.conf

@@ -1,33 +1,18 @@
 server {
-    listen 80;
-    server_name localhost;
+    listen       80 default_server;
+    server_name  _;
 
-    # 开启gzip压缩
     gzip on;
-    gzip_min_length 1k;
-    gzip_comp_level 9;
-    gzip_types text/plain text/css text/javascript application/json application/javascript application/x-javascript application/xml;
-    gzip_vary on;
-    gzip_disable "MSIE [1-6]\.";
+    gzip_min_length 1k;     # 设置允许压缩的页面最小字节数
+    gzip_buffers 4 16k;     # 用来存储 gzip 的压缩结果
+    gzip_http_version 1.1;  # 识别 HTTP 协议版本
+    gzip_comp_level 2;      # 设置 gzip 的压缩比 1-9。1 压缩比最小但最快,而 9 相反
+    gzip_types text/plain application/x-javascript text/css application/xml application/javascript; # 指定压缩类型
+    gzip_proxied any;       # 无论后端服务器的 headers 头返回什么信息,都无条件启用压缩
 
-    # 根目录配置
-    root /usr/share/nginx/html;
-    index index.html;
-
-    # 处理Vue路由(避免404)
-    location / {
+    location / { ## 前端项目
+        root   /usr/share/nginx/html/;
+        index  index.html index.htm;
         try_files $uri $uri/ /index.html;
     }
-
-    # 静态资源缓存
-    location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
-        expires 1y;
-        add_header Cache-Control "public, immutable";
-    }
-
-    # 禁止访问隐藏文件
-    location ~ /\. {
-        deny all;
-    }
 }
-

+ 0 - 1
src/api/newApi/openMarketBid.js

@@ -16,4 +16,3 @@ export function getFreeMarketList(data) {
      method: 'get'
    })
  }
-