Skip to content

Commit

Permalink
use default resolver, tweak buffer for http location
Browse files Browse the repository at this point in the history
  • Loading branch information
leafo committed Jul 19, 2019
1 parent 75c3a81 commit 7b02a2f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions nginx/http_proxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,21 @@ location = /proxy {
end
";

resolver 8.8.8.8;
resolver_timeout 2;
proxy_buffering on;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;

proxy_http_version 1.1;
proxy_read_timeout 20s;
proxy_send_timeout 20s;
proxy_connect_timeout 10s;

proxy_set_header Connection "";
proxy_ssl_server_name on;
proxy_ssl_protocols TLSv1.2;
proxy_ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';

proxy_pass $_url;
}

Expand Down

0 comments on commit 7b02a2f

Please sign in to comment.