Michael Wang 4 жил өмнө
parent
commit
b430e8c974

+ 9 - 9
conf/nginx.conf

@@ -2,8 +2,8 @@
 worker_processes  1;
 
 #error_log  error.log;
-#error_log  logs/error.log  notice;
-#error_log  logs/error.log  info;
+error_log  /var/log/nginx/error.log  notice;
+error_log  /var/log/nginx/error.log  info;
 
 pid        nginx.pid;
 
@@ -15,11 +15,11 @@ http {
     include       mime.types;
     default_type  application/octet-stream;
 
-    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
-    #                  '$status $body_bytes_sent "$http_referer" '
-    #                  '"$http_user_agent" "$http_x_forwarded_for"';
+    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
+                      '$status $body_bytes_sent "$http_referer" '
+                      '"$http_user_agent" "$http_x_forwarded_for"';
 
-    #access_log  logs/access.log  main;
+    access_log  /var/log/nginx/access.log  main;
 
     sendfile        on;
     #tcp_nopush     on;
@@ -44,9 +44,9 @@ http {
             try_files $uri $uri/ /index.html;
         }
 
-        location /admin {
-            try_files $uri $uri/ /index.html;
-        }
+        # location /admin {
+        #     try_files $uri $uri/ /index.html;
+        # }
 
         # location ~* /(api|upload) {
         #     client_max_body_size    20m;

+ 1 - 1
src/plugins/axiosApp.js

@@ -33,7 +33,7 @@ axiosRetry(_axiosApp);
 
 function gToken(method, url, token, now) {
   // const now = Date.now();
-  console.log(`${getSessionId()} ${method}&${url}&${now}&${token}`);
+  // console.log(`${getSessionId()} ${method}&${url}&${now}&${token}`);
   // const a = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
   // let randomStr = "";
   // for (let i = 0; i < 6; i++) {