Quellcode durchsuchen

Merge branch 'master' of http://git.meloinfo.com/hejh/gw

shenchunlv vor 2 Jahren
Ursprung
Commit
907cf475cb
6 geänderte Dateien mit 202 neuen und 138 gelöschten Zeilen
  1. 6 0
      Dockerfile
  2. 14 0
      docker-app-compose.yml
  3. 42 0
      nginx.conf
  4. 1 0
      nuxt.config.js
  5. 1 0
      package.json
  6. 138 138
      yarn.lock

+ 6 - 0
Dockerfile

@@ -0,0 +1,6 @@
+FROM nginx:1.16
+
+ENV TZ="Asia/Shanghai"
+ENV NGINX_PORT=80
+EXPOSE ${NGINX_PORT}
+COPY dist/  /usr/share/nginx/html/

+ 14 - 0
docker-app-compose.yml

@@ -0,0 +1,14 @@
+version: '3'
+services:
+  loan-hrsk-pages:                      # 指定服务的名称
+    image: "loan-hrsk-pages:${app_tag_name}"                         # 镜像名 .注意:${app_tag_name} 变量名不能带'-'符号,第一个'-'后会认为是默认值,而非变量名的一部分。
+    restart: always
+    environment:                        # 环境变量
+      - VIRTUAL_HOST=''          # nginx-proxy 所用域名
+    networks:                           # 网络 (用于容器间通信)
+      - nginx-proxy
+
+networks:                               # 定义网络
+  nginx-proxy:
+    external:
+      name: nginx-proxy

+ 42 - 0
nginx.conf

@@ -0,0 +1,42 @@
+worker_processes auto;
+
+events {
+    worker_connections 1024;
+}
+
+http {
+ include             mime.types;
+
+ default_type        application/octet-stream;
+
+ sendfile            on;
+
+ keepalive_timeout 65;
+
+ client_max_body_size 20m;
+
+    server {
+        listen       80;
+        server_name  localhost;
+
+        gzip on;
+        gzip_min_length 1k;
+        gzip_comp_level 9;
+        gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
+        gzip_vary on;
+
+        location / {
+            root   /usr/share/nginx/html;
+            try_files $uri $uri/ @router;
+            index  index.html index.htm;
+            error_page 405 =200 http://$host$request_uri;
+        }
+        location @router {
+            rewrite ^.*$ /index.html last;
+        }
+        error_page   500 502 503 504  /50x.html;
+        location = /50x.html {
+            root   html;
+        }
+    }
+ }

+ 1 - 0
nuxt.config.js

@@ -21,6 +21,7 @@ export default {
     'ant-design-vue/dist/antd.css'
   ],
 
+  target:'static',
   // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
   plugins: [
     '@/plugins/antd-ui',

+ 1 - 0
package.json

@@ -14,6 +14,7 @@
     "less": "^4.1.3",
     "less-loader": "^7.0.0",
     "nuxt": "^2.15.8",
+    "qs": "^6.9.4",
     "vant": "^2.12.54",
     "vue": "^2.7.10",
     "vue-server-renderer": "^2.7.10",

Datei-Diff unterdrückt, da er zu groß ist
+ 138 - 138
yarn.lock


Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.