Skip to content

Instantly share code, notes, and snippets.

@mrrooijen
Created May 23, 2011 01:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrrooijen/986075 to your computer and use it in GitHub Desktop.
Save mrrooijen/986075 to your computer and use it in GitHub Desktop.
Faye + PrivatePub + HTTPS (SSL) Protocol
location /faye {
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_redirect off;
root /var/applications/current/faye;
proxy_pass http://127.0.0.1:4001; # im running faye on port 4001
break;
}
// script.src = self.subscriptions.server + ".js";
script.src = 'https://mydomain.com/faye.js'
// and
// self.fayeClient = new Faye.Client(self.subscriptions.server);
self.fayeClient = new Faye.Client("https://mydomain.com/faye");
server: "http://123.45.67.89:4001/faye"
secret_token: "my_secret_token"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment