mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-15 20:02:25 +01:00
* commit '84ec1c80d283cbea8b186629e7b1de49d91cf9ba': fix(heroku): fix invalid app.json (#1901) feat(deps): dependencies upgrade (#1887) release(0.6.0): MEAN.JS 0.6.0 (#1863) feat(readme): Deploy to Heroku button (#1854) fix(users): Spacing Issues Abstracted OAuth routes to use req param to identify strategy & moved scope to actual strategy definition. Save profile images to Amazon S3 (#1857) fix(build): Require correct dependencies for prod build (#1855) fix(eslint): Make `space-before-function-paren` rule consistent with other rules (#1858) fix(gulpfile): show error on uglify (#1860) feat(core): Add manifest.json (#1851) # Conflicts: # CHANGELOG.md # README.md # modules/core/client/views/header.client.view.html # modules/users/client/views/settings/change-profile-picture.client.view.html # modules/users/server/controllers/users/users.profile.server.controller.js # package.json
118 lines
3.6 KiB
JavaScript
118 lines
3.6 KiB
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
app: {
|
|
title: 'meanTorrent',
|
|
description: 'MEAN.JS BitTorrent - Full-Stack JavaScript Using MongoDB, Express, AngularJS, and Node.js, a Private/Public BitTorrent Tracker CMS with Multilingual and IRC announce support',
|
|
keywords: 'mongodb, express, angularjs, node.js, mongoose, passport, torrent, bitTorrent, tracker, announce',
|
|
googleAnalyticsTrackingID: process.env.GOOGLE_ANALYTICS_TRACKING_ID || 'GOOGLE_ANALYTICS_TRACKING_ID'
|
|
},
|
|
db: {
|
|
promise: global.Promise
|
|
},
|
|
port: process.env.PORT || 3000,
|
|
host: process.env.HOST || '0.0.0.0',
|
|
// DOMAIN config should be set to the fully qualified application accessible
|
|
// URL. For example: https://www.myapp.com (including port if required).
|
|
domain: process.env.DOMAIN || 'localhost',
|
|
// Session Cookie settings
|
|
sessionCookie: {
|
|
// session expiration is set by default to 24 hours
|
|
maxAge: 24 * (60 * 60 * 1000),
|
|
// httpOnly flag makes sure the cookie is only accessed
|
|
// through the HTTP protocol and not JS/browser
|
|
httpOnly: true,
|
|
// secure cookie should be turned to true to provide additional
|
|
// layer of security so that the cookie is set only when working
|
|
// in HTTPS mode.
|
|
secure: false
|
|
},
|
|
// sessionSecret should be changed for security measures and concerns
|
|
sessionSecret: process.env.SESSION_SECRET || 'imean.io.secret',
|
|
// sessionKey is the cookie session name
|
|
sessionKey: 'sessionId',
|
|
sessionCollection: 'sessions',
|
|
// Lusca config
|
|
csrf: {
|
|
csrf: false,
|
|
csp: false,
|
|
xframe: 'SAMEORIGIN',
|
|
p3p: 'ABCDEF',
|
|
xssProtection: true
|
|
},
|
|
logo: 'modules/core/client/img/brand/logo.png',
|
|
favicon: 'modules/core/client/img/brand/favicon.ico',
|
|
illegalUsernames: ['meanjs', 'administrator', 'password', 'admin', 'user',
|
|
'unknown', 'anonymous', 'null', 'undefined', 'api'
|
|
],
|
|
aws: {
|
|
s3: {
|
|
accessKeyId: process.env.S3_ACCESS_KEY_ID,
|
|
secretAccessKey: process.env.S3_SECRET_ACCESS_KEY,
|
|
bucket: process.env.S3_BUCKET
|
|
}
|
|
},
|
|
uploads: {
|
|
// Storage can be 'local' or 's3'
|
|
storage: process.env.UPLOADS_STORAGE || 'local',
|
|
profile: {
|
|
image: {
|
|
dest: './modules/users/client/img/profile/uploads/',
|
|
limits: {
|
|
fileSize: 1 * 1024 * 1024 // Max file size in bytes (1 MB)
|
|
}
|
|
}
|
|
},
|
|
torrent: {
|
|
file: {
|
|
dest: './modules/torrents/client/uploads/',
|
|
temp: './modules/torrents/client/uploads/temp/',
|
|
limits: {
|
|
fileSize: 2 * 1024 * 1024 // Max file size in bytes (2 MB)
|
|
}
|
|
},
|
|
cover: {
|
|
dest: './modules/torrents/client/uploads/cover/',
|
|
temp: './modules/torrents/client/uploads/temp/',
|
|
limits: {
|
|
fileSize: 2 * 1024 * 1024 // Max file size in bytes (2 MB)
|
|
}
|
|
},
|
|
image: {
|
|
dest: './modules/torrents/client/uploads/image/',
|
|
temp: './modules/torrents/client/uploads/temp/',
|
|
limits: {
|
|
fileSize: 2 * 1024 * 1024 // Max file size in bytes (2 MB)
|
|
}
|
|
}
|
|
},
|
|
attach: {
|
|
file: {
|
|
dest: './modules/forums/client/attach/',
|
|
temp: './modules/forums/client/attach/temp/',
|
|
limits: {
|
|
fileSize: 100 * 1024 * 1024 // Max file size in bytes (100 MB)
|
|
}
|
|
}
|
|
},
|
|
subtitle: {
|
|
file: {
|
|
dest: './modules/torrents/client/uploads/subtitles/',
|
|
limits: {
|
|
fileSize: 2 * 1024 * 1024 // Max file size in bytes (2 MB)
|
|
}
|
|
}
|
|
}
|
|
},
|
|
shared: {
|
|
owasp: {
|
|
allowPassphrases: true,
|
|
maxLength: 128,
|
|
minLength: 10,
|
|
minPhraseLength: 20,
|
|
minOptionalTestsToPass: 4
|
|
}
|
|
}
|
|
|
|
};
|