Last active
August 29, 2015 14:03
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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