1 下载nginx, 上传 cert.key;cert.pem; 到conf 文件夹
2 修改nginx.conf
server {
listen 443 ssl;
server_name test.rickyabc.top;
ssl_certificate cert.pem;
ssl_certificate_key cert.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://172.30.99.189:3000;
}
}
3 npm install
add .env file
REACT_APP_HOST=’http://106.15.137.49′
REACT_APP_PORT=8080
npm install dotenv
npm start
4 start nginx.exe