Commit 66315b69 by zhangxingmin

push

parent 404f0b17
......@@ -39,14 +39,17 @@ server {
# 代理API请求到网关服务
location /api/ {
# 负载均衡到两个网关服务实例
proxy_pass http://gateway_load_balance/;
# 代理到已备案域名的443端口
proxy_pass https://center.supguard.cn/api;
# 注意:这里不需要rewrite,因为center.supguard.cn的nginx会处理
# 关键:设置Host头为已备案域名
proxy_set_header Host center.supguard.cn;
# 代理设置
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_set_header X-Forwarded-Proto $scheme;
proxy_set_header Authorization $http_authorization;
# 超时设置
proxy_connect_timeout 30s;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment