Browse Source

新增配置文件

a1140836302 2 years ago
parent
commit
1204565ec9
2 changed files with 50 additions and 0 deletions
  1. 37 0
      default.conf
  2. 13 0
      package.json

+ 37 - 0
default.conf

@@ -0,0 +1,37 @@
+server {
+    listen       80;
+    server_name  localhost;
+
+    #charset koi8-r;
+    access_log  /var/log/nginx/host.access.log  main;
+
+    gzip on;
+    gzip_min_length 1k;
+    gzip_buffers 4 16k;
+    gzip_comp_level 8;
+    gzip_types text/plain application/javascript application/x-javascript text/css application/json text/javascript application/x-httpd-php image/jpeg image/gif image/png;
+    gzip_vary off;
+    gzip_disable "MSIE [1-6]\.";
+
+    location / {
+        root   /usr/share/nginx/html;
+        try_files $uri $uri/ /index.html;
+        index  start.html index.html;
+    }
+    
+    location /api {
+        proxy_read_timeout 300;
+        proxy_pass   http://172.16.121.248:8080;
+    }
+
+    location /ws {
+        proxy_read_timeout 300;
+        proxy_pass   http://172.16.121.248:8080/ws;
+    }
+    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
+    
+    # location /api {
+    #     proxy_pass   http://api-server:8082;
+    # }
+
+}

+ 13 - 0
package.json

@@ -20,8 +20,12 @@
     "clipboard": "2.0.4",
     "codemirror": "5.45.0",
     "core-js": "3.6.5",
+    "driver.js": "0.9.5",
+    "dropzone": "5.5.1",
     "echarts": "4.2.1",
     "element-ui": "2.13.2",
+    "file-saver": "2.0.1",
+    "fuse.js": "3.4.4",
     "js-cookie": "2.2.0",
     "jsonlint": "1.6.3",
     "jszip": "3.2.1",
@@ -32,6 +36,7 @@
     "screenfull": "4.2.0",
     "script-loader": "0.7.2",
     "sortablejs": "1.8.4",
+    "tui-editor": "1.3.3",
     "vue": "2.6.10",
     "vue-count-to": "1.0.13",
     "vue-router": "3.0.2",
@@ -57,7 +62,10 @@
     "eslint": "6.7.2",
     "eslint-plugin-vue": "6.2.2",
     "html-webpack-plugin": "3.2.0",
+    "husky": "1.3.1",
     "lint-staged": "8.1.5",
+    "mockjs": "1.0.1-beta3",
+    "plop": "2.3.0",
     "runjs": "4.3.2",
     "sass": "1.26.2",
     "sass-loader": "8.0.2",
@@ -90,5 +98,10 @@
       "eslint --fix",
       "git add"
     ]
+  },
+  "husky": {
+    "hooks": {
+      "pre-commit": "lint-staged"
+    }
   }
 }