Upload 5 files
Browse files- nginx.conf.template +16 -0
nginx.conf.template
CHANGED
|
@@ -23,6 +23,22 @@ server {
|
|
| 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;
|
|
|
|
| 23 |
proxy_read_timeout 300;
|
| 24 |
}
|
| 25 |
|
| 26 |
+
location = ${PROXY_PATH}/v0/management {
|
| 27 |
+
return 301 ${PROXY_PATH}/v0/management/;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
location ^~ ${PROXY_PATH}/v0/management/ {
|
| 31 |
+
proxy_pass http://${CLI_PROXY_HOST}:${CLI_PROXY_PORT}/v0/management/;
|
| 32 |
+
proxy_http_version 1.1;
|
| 33 |
+
proxy_set_header Host $host;
|
| 34 |
+
proxy_set_header X-Real-IP $remote_addr;
|
| 35 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 36 |
+
proxy_set_header X-Forwarded-Proto $scheme;
|
| 37 |
+
proxy_set_header Upgrade $http_upgrade;
|
| 38 |
+
proxy_set_header Connection "upgrade";
|
| 39 |
+
proxy_read_timeout 300;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
location ^~ ${PROXY_PATH}/ {
|
| 43 |
proxy_pass http://${CLI_PROXY_HOST}:${CLI_PROXY_PORT}/;
|
| 44 |
proxy_http_version 1.1;
|