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
description "redis server" | |
start on runlevel [2345] | |
stop on shutdown | |
exec /usr/local/bin/redis-server /etc/redis/redis.conf | |
respawn |
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
formaline, event "message" --> {"type":"warning","isupload":true,"msg":"unable to retrieve session identifier, configuration parameter me.getSessionID must be a function!"} | |
formaline, HTTP Request Headers : { | |
"host": "domain.com", | |
"user-agent": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0) Gecko/20100101 Firefox/7.0", | |
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", | |
"accept-language": "en-us,en;q=0.5", | |
"accept-encoding": "gzip, deflate", | |
"accept-charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7", | |
"connection": "keep-alive", | |
"referer": "http://domain.com/test.html", |
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
#!/usr/bin/env node | |
var express = require('express'), | |
app = express.createServer(), // actual application | |
UPLOAD_LIMIT = 20 * 1024 * 1024, | |
form = require('./connect-formaline'), | |
formaline_config = ({"uploadRootDir": '/tmp/', "emitProgress": true, "requestTimeOut": 600000, "resumeRequestOnError": false, "maxFileSize": UPLOAD_LIMIT, "checkContentLength": true, "holdFilesExtensions": true, "removeIncompleteFiles": true, "logging": 'debug:on,1:on,2:on,3:off,4:off,console:on,file:off,record:off'}); | |
app | |
.use(express.cookieParser()) |
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
var connect = require('connect'), | |
UPLOAD_LIMIT = 1000000, | |
flconf = {"uploadRootDir": '/tmp/', "requestTimeOut": 600000, "resumeRequestOnError": false, "maxFileSize": UPLOAD_LIMIT, "checkContentLength": true, "holdFilesExtensions": true, "removeIncompleteFiles": true, "logging": 'debug:off,1:on,2:off,3:off,4:off,console:on,file:off,record:off'}, | |
formaline = require('connect-formaline'); | |
connect( | |
connect.cookieParser(), | |
connect.session({ secret: 'keyboard cat' }), | |
formaline(flconf), | |
function(req, res){ |
NewerOlder