Skip to content

Commit

Permalink
fix: increase api timeout to 120s
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-sig committed Dec 17, 2024
1 parent d05bf7f commit 310478b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions api.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ HEALTHCHECK --interval=30s --timeout=3s \
CMD ["uvicorn", "portfolio_analytics.api.api_main:app", \
"--host", "0.0.0.0", \
"--port", "8000", \
"--timeout-keep-alive", "120", \
"--log-level", "info"]
7 changes: 7 additions & 0 deletions docs/DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Timeout settings (all set to 120 seconds)
proxy_connect_timeout 120s;
proxy_send_timeout 120s;
proxy_read_timeout 120s;
keepalive_timeout 120s;
}
}
Expand Down Expand Up @@ -153,6 +159,7 @@ Test and Restart Nginx
```
sudo nginx -t
sudo systemctl restart nginx
sudo systemctl reload nginx
```

### DNS Configuration
Expand Down

0 comments on commit 310478b

Please sign in to comment.