Skip to content

Commit

Permalink
set option to upstream timeout (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagogomesverissimo authored Oct 23, 2020
1 parent f7f7dab commit 9724f9d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

nginx_revproxy_sites: # List of sites to reverse proxy
example.com: # Domain name
client_max_body_size: "256M"
proxy_read_timeout: "360"
domains: # List of server_name aliases
- example.com
- www.example.com
Expand Down
1 change: 1 addition & 0 deletions templates/reverseproxy.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ server {
location / {
gzip off;
client_max_body_size {{ item.value.client_max_body_size | default('50M') }};
proxy_read_timeout {{ item.value.proxy_read_timeout | default('300') }};
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
Expand Down
1 change: 1 addition & 0 deletions templates/reverseproxy_ssl.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ server {
gzip off;
proxy_set_header X-Forwarded-Ssl on;
client_max_body_size {{ item.value.client_max_body_size | default('50M') }};
proxy_read_timeout {{ item.value.proxy_read_timeout | default('300') }};
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
Expand Down

0 comments on commit 9724f9d

Please sign in to comment.