-
Notifications
You must be signed in to change notification settings - Fork 42
/
default.conf
27 lines (24 loc) · 918 Bytes
/
default.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
server {
listen 80;
server_name _;
client_max_body_size $CLIENT_MAX_BODY_SIZE;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
# 127.0.0.11 is DNS set up by Docker, see:
# https://docs.docker.com/engine/userguide/networking/configure-dns/
# https://github.com/moby/moby/issues/20026
resolver $RESOLVERS valid=10s ipv6=off;
set $upstream $UPSTREAM_HTTP_ADDRESS;
location / {
proxy_pass $upstream;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
# add support for websockets
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
}
}