forked from mikesplain/nginx-proxy-pass-docker
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdefault.conf
More file actions
24 lines (20 loc) · 693 Bytes
/
default.conf
File metadata and controls
24 lines (20 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
server {
listen 80;
server_name docker;
location / {
# add a filter block if applicable.
<filter_block>
# set up the reverse proxy.
proxy_pass <proxy_pass_protocol_placeholder>://<proxy_pass_placeholder>;
proxy_set_header Host <host_placeholder>;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 150;
proxy_send_timeout 100;
proxy_read_timeout 100;
proxy_buffers 4 32k;
client_max_body_size 0;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}