flash_policy_server 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +24 -2
- data/VERSION +1 -1
- data/flash_policy_server.gemspec +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -1,6 +1,28 @@
|
|
1
|
-
=
|
1
|
+
= A Flash Policy Server in Ruby
|
2
2
|
|
3
|
-
|
3
|
+
This is a simple Ruby-based policy server to serve Flash's crossdomain.xml policy file.
|
4
|
+
|
5
|
+
== Rationale
|
6
|
+
|
7
|
+
The web is increasingly realtime, but websockets still aren't supported on older browser clients. Many server push libraries (e.g. socket.io) attempt to use websockets, with a Flash fallback. Others (amqp.js, for instance) are Flash only.
|
8
|
+
|
9
|
+
When using Flash sockets, it's necessary to have a policy server running on port 843, in order to set cross domain policy. This library does the job.
|
10
|
+
|
11
|
+
== Usage
|
12
|
+
|
13
|
+
Because Adobe was kind enough to pick a low port (843), the server needs to be run as root:
|
14
|
+
|
15
|
+
sudo flash_policy_server
|
16
|
+
|
17
|
+
If you don't yet have a crossdomain.xml in your current working directory, you'll be prompted to make one before the server can start. *NB*: the sample crossdomain.xml in the usage prompt is the most permissive possible policy.
|
18
|
+
|
19
|
+
You should read up on the crossdomain.xml spec if you don't understand the security implications of this file. It's here:
|
20
|
+
|
21
|
+
http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html
|
22
|
+
|
23
|
+
== Installation
|
24
|
+
|
25
|
+
gem install flash_policy_server
|
4
26
|
|
5
27
|
== Contributing to flash-policy-server
|
6
28
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/flash_policy_server.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flash_policy_server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- dave
|