Skip to content

Commit

Permalink
Merge pull request #29 from skalenetwork/hotfix/modify-nginx-params
Browse files Browse the repository at this point in the history
Update nginx params
  • Loading branch information
dmytrotkk authored Oct 17, 2022
2 parents 45e7563 + 7b185ae commit 44f3960
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ events {

http {

limit_req_zone $binary_remote_addr zone=one:10m rate=15r/s;
limit_req_zone $binary_remote_addr zone=one:10m rate=100r/s;
client_max_body_size 5M;

server {
Expand All @@ -16,9 +16,9 @@ http {

limit_req zone=one burst=100;

proxy_read_timeout 500s;
proxy_connect_timeout 500s;
proxy_send_timeout 500s;
proxy_read_timeout 180s;
proxy_connect_timeout 60s;
proxy_send_timeout 180s;

location / {
proxy_http_version 1.1;
Expand Down
6 changes: 3 additions & 3 deletions templates/upstream.conf.j2
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
upstream {{ schain_name }} {
ip_hash;
{% for endpoint in http_endpoints %}
server {{ endpoint }} max_fails=1 fail_timeout=600s;
server {{ endpoint }} max_fails=1 fail_timeout=10s;
{% endfor %}
}
upstream ws-{{ schain_name }} {
ip_hash;
{% for endpoint in ws_endpoints %}
server {{ endpoint }} max_fails=1 fail_timeout=600s;
server {{ endpoint }} max_fails=1 fail_timeout=10s;
{% endfor %}
}
upstream storage-{{ schain_name }} {
ip_hash;
{% for endpoint in fs_endpoints %}
server {{ endpoint }} max_fails=1 fail_timeout=600s;
server {{ endpoint }} max_fails=1 fail_timeout=10s;
{% endfor %}
}

0 comments on commit 44f3960

Please sign in to comment.