1
0

6 Revīzijas c9d12a859e ... 720ddf37bf

Autors SHA1 Ziņojums Datums
  chd 720ddf37bf docker 1 gadu atpakaļ
  chd aeb0ae82cb Merge remote-tracking branch 'origin/master' 1 gadu atpakaļ
  chd a82b537cce Merge remote-tracking branch 'origin/master' 1 gadu atpakaļ
  chd b49d26292f docker 1 gadu atpakaļ
  chd ddc4f0d11b Merge remote-tracking branch 'origin/master' 1 gadu atpakaļ
  chd c313fcc4ee docker 1 gadu atpakaļ
3 mainītis faili ar 45 papildinājumiem un 2 dzēšanām
  1. 2 2
      docker-app-compose.yml
  2. 42 0
      nginx.conf
  3. 1 0
      package.json

+ 2 - 2
docker-app-compose.yml

@@ -1,7 +1,7 @@
 version: '3'
 services:
-  loan-hrsk-pages:                      # 指定服务的名称
-    image: "loan-hrsk-pages:${app_tag_name}"                         # 镜像名 .注意:${app_tag_name} 变量名不能带'-'符号,第一个'-'后会认为是默认值,而非变量名的一部分。
+  loan-hrsk-official-pages:                      # 指定服务的名称
+    image: "loan-hrsk-official-pages:${app_tag_name}"                         # 镜像名 .注意:${app_tag_name} 变量名不能带'-'符号,第一个'-'后会认为是默认值,而非变量名的一部分。
     restart: always
     environment:                        # 环境变量
       - VIRTUAL_HOST=''          # 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
package.json

@@ -14,6 +14,7 @@
     "@nuxtjs/tailwindcss": "^6.4.1",
     "@vant/nuxt": "^1.0.0",
     "nuxt": "^3.2.3",
+    "qs": "^6.9.4",
     "sass": "^1.58.3"
   },
   "dependencies": {