f2d90b38 commited on
Commit
0557d09
·
verified ·
1 Parent(s): 49b9acd

Upload 4 files

Browse files
Files changed (1) hide show
  1. nginx.conf.template +10 -2
nginx.conf.template CHANGED
@@ -12,10 +12,18 @@ server {
12
  }
13
 
14
  location = ${PROXY_PATH} {
15
- return 301 ${PROXY_PATH}/;
 
 
 
 
 
 
 
 
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;