tide写的http服务如何被反向代理
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
# https://github.com/http-rs/tide/issues/458#issuecomment-619243201
proxy_http_version 1.1;
proxy_pass http://dotdotvote;
}
最重要是那一行proxy_http_version 1.1;并且proxy_pass 放到最后一行