fix: memory leak while downloading large files

This commit is contained in:
Elias Schneider
2023-10-09 11:14:51 +02:00
parent 38919003e9
commit 97e7d7190d
7 changed files with 53 additions and 16 deletions

22
nginx/nginx.conf Normal file
View File

@@ -0,0 +1,22 @@
events {}
http {
server {
listen 3000;
client_max_body_size 100M;
location /api {
proxy_pass http://localhost:8080;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location / {
proxy_pass http://localhost:3333;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}