Upload 4 files
Browse files- nginx.conf.template +10 -2
nginx.conf.template
CHANGED
|
@@ -12,10 +12,18 @@ server {
|
|
| 12 |
}
|
| 13 |
|
| 14 |
location = ${PROXY_PATH} {
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
}
|
| 17 |
|
| 18 |
-
location ${PROXY_PATH}/ {
|
| 19 |
proxy_pass http://${CLI_PROXY_HOST}:${CLI_PROXY_PORT}/;
|
| 20 |
proxy_http_version 1.1;
|
| 21 |
proxy_set_header Host $host;
|
|
|
|
| 12 |
}
|
| 13 |
|
| 14 |
location = ${PROXY_PATH} {
|
| 15 |
+
proxy_pass http://${CLI_PROXY_HOST}:${CLI_PROXY_PORT}/;
|
| 16 |
+
proxy_http_version 1.1;
|
| 17 |
+
proxy_set_header Host $host;
|
| 18 |
+
proxy_set_header X-Real-IP $remote_addr;
|
| 19 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 20 |
+
proxy_set_header X-Forwarded-Proto $scheme;
|
| 21 |
+
proxy_set_header Upgrade $http_upgrade;
|
| 22 |
+
proxy_set_header Connection "upgrade";
|
| 23 |
+
proxy_read_timeout 300;
|
| 24 |
}
|
| 25 |
|
| 26 |
+
location ^~ ${PROXY_PATH}/ {
|
| 27 |
proxy_pass http://${CLI_PROXY_HOST}:${CLI_PROXY_PORT}/;
|
| 28 |
proxy_http_version 1.1;
|
| 29 |
proxy_set_header Host $host;
|