disable proxy buffering in nginx

Buffering to local disk is unnecessary and wasteful.
Moonfire connections are cheap.
This commit is contained in:
Scott Lamb 2021-08-13 15:28:31 -07:00 committed by GitHub
parent 711071f003
commit 4204d84bde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ desired DNS name. Now finalize its configuration:
The author's system does this via the following
`/etc/nginx/sites-available/nvr.home.slamb.org` file:
```
```nginx
upstream moonfire {
server 127.0.0.1:8080;
}
@ -233,9 +233,9 @@ server {
}
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;