net::ERR_HTTP2_PROTOCOL_ERROR 200

proxy_max_temp_file_size

早上 中午,打开自己的Gogs准备开干

???
emmmm


局域网正常

难道因为反代的锅。。?

网上查资料emmmm

意思是说往Nginx配置文件的Server段加一句 proxy_max_temp_file_size 0; 就好了

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name emm.emmm.cn;
include ssl/emm.emmm.cn.conf;
gzip off;
proxy_max_temp_file_size 0;
location / {
proxy_pass http://127.0.0.1:3000/;
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_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}

嗯,我好了

Author: 张哲
Link: https://blog.asec01.net/Nginx-HTTP2-PROTOCOL-ERROR-200/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 3.0 中国大陆 unless stating additionally.