wfansh před 3 měsíci
rodič
revize
dd7e5d4723
2 změnil soubory, kde provedl 11 přidání a 11 odebrání
  1. 10 10
      conf/nginx/adweb3.conf
  2. 1 1
      conf/nginx/general.conf

+ 10 - 10
conf/nginx/adweb3.conf

@@ -9,7 +9,7 @@ server {
     server_name v3.adwebcloud.com zhigeng.adwebcloud.com;
 
     # 日志地址
-    access_log  /var/log/nginx/access.log;
+    access_log /var/log/nginx/access.log;
     error_log /var/log/nginx/error.log;
 
     ssl_certificate /root/.acme.sh/v3.adwebcloud.com_ecc/fullchain.cer;
@@ -29,14 +29,14 @@ server {
             proxy_pass http://127.0.0.1:8080;
         }
 
-	    location /adweb3/websocket/ {
-		    proxy_pass           http://127.0.0.1:8080/adweb3/websocket/;
-		    proxy_http_version 1.1;
-		    proxy_set_header Upgrade $http_upgrade;
-		    proxy_set_header Connection "Upgrade";
-		    proxy_set_header X-real-ip $remote_addr;
-		    proxy_set_header X-Forwarded-For $remote_addr;
-		}
+        location /adweb3/websocket/ {
+            proxy_pass http://127.0.0.1:8080/adweb3/websocket/;
+            proxy_http_version 1.1;
+            proxy_set_header Upgrade $http_upgrade;
+            proxy_set_header Connection "Upgrade";
+            proxy_set_header X-real-ip $remote_addr;
+            proxy_set_header X-Forwarded-For $remote_addr;
+        }
     }
 }
 
@@ -45,7 +45,7 @@ server {
     server_name xxl-job.v3.adwebcloud.com;
 
     # 日志地址
-    access_log  /var/log/nginx/access.log;
+    access_log /var/log/nginx/access.log;
     error_log /var/log/nginx/error.log;
 
     location / {

+ 1 - 1
conf/nginx/general.conf

@@ -1,4 +1,4 @@
- ###gzip start
+###gzip start
 gzip on;#开启gzip压缩
 gzip_min_length 1k;#设置最小压缩的页面大小,页面大小小于此值的话,不会被压缩。
 gzip_comp_level 9;#gzip压缩级别,范围从1(最快)到9(最慢和最优)