Difference between revisions of "Poddery - Diaspora, Matrix and XMPP"

Line 119: Line 119:
'''Nginx'''
'''Nginx'''


<syntaxhighlight lang="bash">
upstream chat_cluster {
  server localhost:5280;
}


location /http-bind {
upstream chat_cluster {
  proxy_set_header X-Real-IP $remote_addr;
  server localhost:5280;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
  proxy_set_header Host $http_host;
  proxy_set_header X-Forwarded-Proto https;


  proxy_redirect off;
location /http-bind {
  proxy_connect_timeout 5;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_buffering      off;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header Host $http_host;
  proxy_set_header X-Forwarded-Proto https;


  proxy_read_timeout   70;
   proxy_redirect off;
  keepalive_timeout    70;
  proxy_connect_timeout 5;
  send_timeout          70;
  proxy_buffering      off;


  client_max_body_size 4M;
  proxy_read_timeout    70;
  client_body_buffer_size 128K;
  keepalive_timeout    70;
  send_timeout          70;
 
  client_max_body_size 4M;
  client_body_buffer_size 128K;
   
   
  proxy_pass http://chat_cluster;
  proxy_pass http://chat_cluster;
}
}
</syntaxhighlight>


=== Chat/Matrix ===
=== Chat/Matrix ===