@@ -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;"]
'use strict'
module.exports = {
NODE_ENV: '"production"',
- BASE_API: '"http://47.103.60.8:8443"',
+ BASE_API: '"/api/"',
}
@@ -1,16 +1,10 @@
-map $http_upgrade $connection_upgrade {
- default upgrade;
- 'websocket' upgrade;
-}
server {
listen 80;
server_name localhost;
client_max_body_size 100M;
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;