mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
#2135 remove connect-domain commented-out examples
This commit is contained in:
parent
1b8cba1945
commit
e6e961f991
2 changed files with 0 additions and 3 deletions
|
|
@ -45,7 +45,6 @@
|
|||
"pretty-data": "git://github.com/vkiryukhin/pretty-data#master",
|
||||
"js2xmlparser": "~0.1.2",
|
||||
"mongoose": "~3.8.1",
|
||||
"connect-domain": "~0.5.0",
|
||||
"domain-middleware": "~0.1.0"
|
||||
},
|
||||
"private": true,
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ var app = express();
|
|||
var nconf = require('nconf');
|
||||
var utils = require('./utils');
|
||||
var middleware = require('./middleware');
|
||||
//var connectDomain = require('connect-domain');
|
||||
var domainMiddleware = require('domain-middleware');
|
||||
var server;
|
||||
var TWO_WEEKS = 1000 * 60 * 60 * 24 * 14;
|
||||
|
|
@ -93,7 +92,6 @@ app.use(passport.initialize());
|
|||
app.use(passport.session());
|
||||
|
||||
app.use(app.router);
|
||||
//app.use(connectDomain());
|
||||
|
||||
var maxAge = (nconf.get('NODE_ENV') === 'production') ? 31536000000 : 0;
|
||||
app.use(express['static'](path.join(__dirname, "/../build"), { maxAge: maxAge }));
|
||||
|
|
|
|||
Loading…
Reference in a new issue