fix chat (xmpp) per http-bosh in nginx

This commit is contained in:
Geno 2020-11-12 17:19:04 +01:00
parent 22c6ad63b8
commit a1726ee906
2 changed files with 6 additions and 2 deletions

View File

@ -11,6 +11,9 @@ events {
} }
http { http {
types_hash_max_size 2048;
types_hash_bucket_size 128;
include mime.types; include mime.types;
default_type application/octet-stream; default_type application/octet-stream;

View File

@ -115,9 +115,10 @@
} }
location /http-bind/ { # BOSH XMPP-HTTP 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 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_redirect off;
proxy_buffering off; proxy_buffering off;
proxy_read_timeout 65s; proxy_read_timeout 65s;