- # 添加https
![](https://img.kancloud.cn/14/3c/143cde451d8a535f1fe0a9480e4eff59_1516x1114.png)
- # 设置反向代理
```
location /api/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:7001/api/;
}
```
![](https://img.kancloud.cn/22/4a/224a857407f63b1791ca28c750b069ce_1560x874.png)