Skip to content

Commit

Permalink
build: Improve nginx configuration (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara authored Dec 18, 2024
1 parent c78e705 commit d74def1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions k8s/iabweb/nginx-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ server {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $${keepempty}host;
proxy_set_header X-Forwarded-For $${keepempty}proxy_add_x_forwarded_for;
proxy_set_header Connection close;
client_max_body_size 0; # disable size check
# Set timeouts longer than Cloudflare proxy limits
proxy_connect_timeout 60; # nginx default (Cf = 15)
proxy_read_timeout 120; # nginx default = 60 (Cf = 100)
proxy_send_timeout 60; # nginx default = 60 (Cf = 30)
}
location /media/ {
alias /app/media/;
Expand Down
5 changes: 5 additions & 0 deletions k8s/ietfweb/nginx-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ server {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $${keepempty}host;
proxy_set_header X-Forwarded-For $${keepempty}proxy_add_x_forwarded_for;
proxy_set_header Connection close;
client_max_body_size 0; # disable size check
# Set timeouts longer than Cloudflare proxy limits
proxy_connect_timeout 60; # nginx default (Cf = 15)
proxy_read_timeout 120; # nginx default = 60 (Cf = 100)
proxy_send_timeout 60; # nginx default = 60 (Cf = 30)
}
location /media/ {
alias /app/media/;
Expand Down

0 comments on commit d74def1

Please sign in to comment.