我是angular2的新手。我一直在使用Nginx作为我的angular1。如何在angular2-cli中配置这些设置
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:8080/cloudface/;
proxy_cookie_path /cloudface/ /;发布于 2017-05-30 18:06:42
角质-Cli不是用于生产的。它是一个开发服务器。因此,这些东西很可能没有必要建立在角-cli。对于后端代理,可以通过安装后端代理实现
{
"/api": {
"target": "http://localhost:3000",
"secure": false
}
}https://stackoverflow.com/questions/43410793
复制相似问题