# 配置接口 location /api{ # 设置接口代理 proxy_pass http://192.168.0.1:8080/; proxy_set_header Host $http_host; #$host:$server_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }
本文作者为gengboxb,转载请注明。
# 配置接口 location /api{ # 设置接口代理 proxy_pass http://192.168.0.1:8080/; proxy_set_header Host $http_host; #$host:$server_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }
本文作者为gengboxb,转载请注明。