Skip to content

Commit

Permalink
feat: 禁用nginx的proxy_buffering
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Apr 3, 2024
1 parent 0e124ee commit d3cd3c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ http {
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_buffering off;
}

location ~ /download/(.*) {
Expand All @@ -63,6 +64,7 @@ http {
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_buffering off;
}

location = /auth {
Expand Down

0 comments on commit d3cd3c1

Please sign in to comment.