Skip to content

Instantly share code, notes, and snippets.

@zauberstuhl
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zauberstuhl/ee95e1eacefa6ddbec6e to your computer and use it in GitHub Desktop.
Save zauberstuhl/ee95e1eacefa6ddbec6e to your computer and use it in GitHub Desktop.
Diaspora: Configure Nginx for proxying http-bind to avoid mixed contant problems (XMPP)
upstream chat_cluster {
server localhost:5280;
}
location /http-bind {
proxy_set_header X-Real-IP $remote_addr;
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;
proxy_connect_timeout 5;
proxy_buffering off;
proxy_read_timeout 70;
keepalive_timeout 70;
send_timeout 70;
client_max_body_size 4M;
client_body_buffer_size 128K;
proxy_pass http://chat_cluster;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment