diaspora/diaspora — pull request #2559 by futurechimp (2011-12-26 10:58:09+00:00)
Title: Would diaspora like a pure-Ruby Flash policy server?

Hi,

I was installing a pod the other day and wanted to get websockets (and the Flash-sockets fallback) running. I was using Nginx rather than Apache. For me, the idea of using the Apache module for the Flash policy server, as detailed at https://github.com/diaspora/diaspora/wiki/Websockets wouldn't work.

To get everything working, I've whipped up a simple flash_policy_server gem. It provides a policy server which runs on a socket on port 843, and is basically a gem command where you run:

sudo flash_policy_server

...and it serves the policy file, prompting you to save a crossdomain.xml if it doesn't exist yet.

This pull request pulls the policy server into diaspora's Gemfile, if it's accepted I can write up some detailed diaspora-related policy server instructions to go with it on the websockets wiki page.