Skip to content

Commit 0c39fdb

Browse files
authored
Update default.conf.template
1 parent 78d2f35 commit 0c39fdb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

default.conf.template

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
upstream target {
1+
upstream $PROXY_HOST-target {
22
least_conn;
33
server $PROXY_HOST:$PROXY_PORT;
44
}
@@ -7,11 +7,13 @@ server {
77
listen 80;
88
server_name $PROXY_DOMAIN;
99

10+
client_max_body_size 50M;
11+
1012
location / {
11-
proxy_pass http://target;
13+
proxy_pass http://$PROXY_HOST-target;
1214
proxy_set_header Host $host;
1315
proxy_set_header X-Real-IP $remote_addr;
1416
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
1517
proxy_set_header X-Forwarded-Proto $scheme;
1618
}
17-
}
19+
}

0 commit comments

Comments
 (0)