-
Notifications
You must be signed in to change notification settings - Fork 848
/
docker_http_proxy.conf
43 lines (35 loc) · 1019 Bytes
/
docker_http_proxy.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
worker_processes 1;
user root;
daemon on;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
upstream docker {
server unix:/var/run/docker.sock fail_timeout=0;
}
server {
listen 38379;
server_name localhost;
access_log /dev/stdout combined;
error_log /dev/stdout;
location / {
proxy_pass http://docker;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 120;
proxy_read_timeout 120;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
}
}
}