tradeview文件 /src/routes/Home/TradeChart.js
websocket文件 /services/SocketClient.js
127.0.0.1 hopex.com
127.0.0.1 localhost
http {
include mime.types;
default_type application/octet-stream;
access_log logs/access.log;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
gzip on;
server {
listen 80;
server_name hopex.com;
location ^~ /banners/ {
proxy_pass http://192.168.70.131:5000;
}
location ^~ /mock/ {
proxy_pass http://127.0.0.1:8000;
}
location ^~ /api/v1/country {
proxy_pass http://192.168.70.131:5001;
}
location ^~ /api/v1/user/ {
proxy_pass http://192.168.70.131:5001;
}
location ^~ /api/v1/gateway/ {
proxy_pass http://192.168.70.131:5003;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location ^~ /api/v1/ {
proxy_pass http://192.168.70.131;
# proxy_pass http://192.168.70.131:10020;
# proxy_pass http://192.168.70.131:10020;
}
location ^~ /api/ {
proxy_pass http://192.168.70.131:10020;
}
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://127.0.0.1:8000;
}
}
server {
listen 80;
server_name me.com;
location / {
root C:/weixiaoyi/myproject/hopex/dist/;
try_files $uri $uri/ /index.html =404;
}
}