FlashPolicyFileServer
FlashPolicyFileServer copied to clipboard
Problem attaching to http instance
@3rd-Eden
I am having trouble trying to attach the policyfile module to my http instance. I am still getting the following:
FlashPolicyFileServer received an error event:
listen EACCES
wherenever I run this code:
var express = require('express');
var app = express();
var server = require('http').createServer(app).listen(process.env.PORT || 9009);
app.use(express.static(__dirname + '/public'));
var pf = require('policyfile').createServer().listen(null, server);
Acccording to their docs I should be able to do this
var pf = require('policyfile').createServer()
, http = require('http');
server = http.createServer(function(q,r){r.writeHead(200);r.end('hello world')});
server.listen(80);
pf.listen(1337, server, function(){
console.log(':3 yay')
});