@@ -1,5 +1,5 @@
FROM docker.m.daocloud.io/library/nginx:1.19
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;"]
@@ -58,22 +58,6 @@ module.exports = {
},
build: {
- proxyTable: {
- '/api': {
- target: 'http://127.0.0.1:8443/',
- changeOrigin: true,
- pathRewrite: {
- '^/api': ''
- }
- },
- '/file': {
- target: 'http://127.0.0.1:8012/',
- '^/file': ''
// Template for index.html
index: path.resolve(__dirname, '../dist/index.html'),
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"/api/"',
+ BASE_API: '"http://47.103.60.8:8443/api/"',
}
@@ -10,7 +10,7 @@ server {
location /api/ {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
- proxy_pass http://localhost:8443;
+ proxy_pass http://47.103.60.8:8443;