2017-04-24 23:31:17 +08:00
|
|
|
server
|
|
|
|
{
|
|
|
|
listen %NGINX_PORT;
|
|
|
|
server_name nginx_docklet.conf;
|
|
|
|
charset UTF-8;
|
|
|
|
index index.html index.htm;
|
2017-05-16 16:33:22 +08:00
|
|
|
client_max_body_size 20m;
|
2017-04-24 23:31:17 +08:00
|
|
|
location ~ ^/NginxStatus/ {
|
|
|
|
stub_status on;
|
|
|
|
access_log off;
|
|
|
|
}
|
|
|
|
|
2017-04-30 15:51:29 +08:00
|
|
|
location ~ ^/(\d+\.\d+\.\d+\.\d+)/ {
|
2017-05-16 16:59:48 +08:00
|
|
|
proxy_pass http://$1:%PROXY_PORT;
|
2017-05-16 00:45:46 +08:00
|
|
|
proxy_set_header Host $host;
|
2017-04-24 23:31:17 +08:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
2017-05-16 16:33:22 +08:00
|
|
|
client_max_body_size 20m;
|
2017-04-24 23:31:17 +08:00
|
|
|
client_body_buffer_size 256k;
|
|
|
|
proxy_connect_timeout 300;
|
|
|
|
proxy_send_timeout 300;
|
|
|
|
proxy_read_timeout 300;
|
|
|
|
proxy_buffer_size 256k;
|
|
|
|
proxy_buffers 4 256k;
|
|
|
|
proxy_busy_buffers_size 256k;
|
|
|
|
proxy_temp_file_write_size 256k;
|
|
|
|
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
|
|
|
|
proxy_max_temp_file_size 128m;
|
|
|
|
proxy_ignore_client_abort on;
|
|
|
|
proxy_pass http://%MASTER_IP:%WEB_PORT;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
|
|
|
}
|
|
|
|
}
|