-
Notifications
You must be signed in to change notification settings - Fork 0
Update configuration to improve performance and reliability #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
3d57c75
c4a9530
b298dc5
4a8d7ef
2a4d30b
6e03bd6
f7d2a73
0ab6f23
a58861c
4134a44
47db2e6
a56a0d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,12 +2,17 @@ http { | |
| include /etc/nginx/mime.types; | ||
| include /etc/nginx/log.conf; | ||
|
|
||
| server_tokens off; | ||
| keepalive_timeout 20s; | ||
| sendfile on; | ||
| tcp_nopush on; | ||
| client_max_body_size 400m; | ||
| client_body_timeout 300s; | ||
| server_tokens off; | ||
| sendfile on; | ||
| tcp_nopush on; | ||
|
|
||
| client_max_body_size 500m; | ||
| client_body_buffer_size 128k; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the intention behind increasing this?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are some links in the commit for more context but the TL;DR is that it's to:
It's not that great of an issue, more like a nice-to-have rather than must-have. FYI, you can see evidence of this below ... |
||
| client_body_timeout 300s; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wondering if we should align the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No objections to that. Should probably have. |
||
| client_header_timeout 65s; | ||
| keepalive_timeout 65s; | ||
| proxy_read_timeout 600s; | ||
itskingori marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| send_timeout 60s; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we setting these to their defaults just for visibility?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. For visibility. |
||
|
|
||
| # If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the | ||
| # scheme used to connect to this server | ||
|
|
@@ -49,8 +54,6 @@ http { | |
| proxy_set_header X-Request-ID $proxy_x_request_id; | ||
| proxy_set_header X-Forwarded-Host $host; | ||
|
|
||
| proxy_read_timeout 600s; | ||
|
|
||
| include /etc/nginx/app.conf; | ||
|
|
||
| server { | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for increasing to
500m?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not real reason other than it feels like a nice round number 😅 ...
400mfeels very random.