fix chat (xmpp) per http-bosh in nginx
This commit is contained in:
parent
22c6ad63b8
commit
a1726ee906
|
@ -11,6 +11,9 @@ events {
|
|||
}
|
||||
|
||||
http {
|
||||
types_hash_max_size 2048;
|
||||
types_hash_bucket_size 128;
|
||||
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
|
|
|
@ -115,9 +115,10 @@
|
|||
}
|
||||
|
||||
location /http-bind/ { # BOSH XMPP-HTTP
|
||||
proxy_pass http://localhost:5280/bosh;
|
||||
proxy_pass http://127.0.0.1:5280/bosh/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;
|
||||
proxy_redirect off;
|
||||
proxy_buffering off;
|
||||
proxy_read_timeout 65s;
|
||||
|
|
Loading…
Reference in New Issue