Skip to content

Commit

Permalink
feat: Configurable api server timeout on embedded nginx (appsmithorg#…
Browse files Browse the repository at this point in the history
…24471)

## Description
- The default request timeout on nginx is set to 60s. This feat allows
users to configure custom nginx timeout value specified via the
Environment variable `APPSMITH_SERVER_TIMEOUT`
- Solves appsmithorg#14535
## Testing
#### How Has This Been Tested?
- [x] Manual
- [ ] Jest
- [ ] Cypress

---------

Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
  • Loading branch information
sum35h and sharat87 authored Jul 6, 2023
1 parent 6e9e974 commit 16d21ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy/docker/templates/nginx/nginx-app-http.conf.template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ server {
}
location /api {
proxy_read_timeout ${APPSMITH_SERVER_TIMEOUT:-60};
proxy_send_timeout ${APPSMITH_SERVER_TIMEOUT:-60};
proxy_pass http://localhost:8080;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ server {
}
location /api {
proxy_read_timeout ${APPSMITH_SERVER_TIMEOUT:-60};
proxy_send_timeout ${APPSMITH_SERVER_TIMEOUT:-60};
proxy_pass http://localhost:8080;
}
Expand Down

0 comments on commit 16d21ed

Please sign in to comment.