Parcourir la source

修改dockerfile配置和logo

zq940222 il y a 2 mois
Parent
commit
2c8ed8163b
3 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      Dockerfile
  2. 1 1
      config/prod.env.js
  3. 1 1
      docker/conf/nginx/conf.d/wkcrm.conf

+ 1 - 1
Dockerfile

@@ -1,5 +1,5 @@
 FROM docker.m.daocloud.io/library/nginx:1.19
 FROM docker.m.daocloud.io/library/nginx:1.19
 
 
 COPY ./dist /usr/share/nginx/html
 COPY ./dist /usr/share/nginx/html
-#COPY ./docker/conf/nginx/conf.d/wkcrm.conf /etc/nginx/conf.d/wkcrm.conf
+COPY ./docker/conf/nginx/conf.d/wkcrm.conf /etc/nginx/conf.d/wkcrm.conf
 CMD ["nginx","-g","daemon off;"]
 CMD ["nginx","-g","daemon off;"]

+ 1 - 1
config/prod.env.js

@@ -1,5 +1,5 @@
 'use strict'
 'use strict'
 module.exports = {
 module.exports = {
   NODE_ENV: '"production"',
   NODE_ENV: '"production"',
-  BASE_API: '"http://127.0.0.1:8443"',
+  BASE_API: '',
 }
 }

+ 1 - 1
docker/conf/nginx/conf.d/wkcrm.conf

@@ -10,7 +10,7 @@ server {
     location /api/ {
     location /api/ {
             proxy_set_header Upgrade $http_upgrade;
             proxy_set_header Upgrade $http_upgrade;
             proxy_set_header Connection $connection_upgrade;
             proxy_set_header Connection $connection_upgrade;
-            proxy_pass   http://47.103.60.8:8443;
+            proxy_pass   http://localhost:8443;
     }
     }
 }
 }