Created
May 23, 2011 01:21
-
-
Save mrrooijen/986075 to your computer and use it in GitHub Desktop.
Faye + PrivatePub + HTTPS (SSL) Protocol
This file contains 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
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; | |
} |
This file contains 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
// 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"); |
This file contains 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
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