Convos

 view release on metacpan or  search on metacpan

lib/Convos/Manual/HttpHeaders.pod  view on Meta::CPAN

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# mount the application under /convos
location /convos {
  # remove "/convos" from the forwarded request
  rewrite ^/convos(.*)$ $1 break;
 
  # generic headers for correct handling of ws and http
  proxy_http_version 1.1;
  proxy_set_header Connection "upgrade";
  proxy_set_header Host $host;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Host $host;
 
  # set this if you are running SSL
  proxy_set_header X-Forwarded-HTTPS 1;
 
  # inform Convos the full location where it is mounted
  proxy_set_header X-Request-Base "https://some-domain.com/convos";
 
  # tell nginx where Convos is running
  proxy_pass http://10.0.0.10:8080;



( run in 0.236 second using v1.01-cache-2.11-cpan-d6f9594c0a5 )