Skip to content

Instantly share code, notes, and snippets.

@tlongren
Created April 5, 2014 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlongren/9996439 to your computer and use it in GitHub Desktop.
Save tlongren/9996439 to your computer and use it in GitHub Desktop.
Let's Chat settings.js
var config = {
// Server
host: '', // Not required
port: process.env.PORT || 5000,
// Registration
disable_registration: false,
// HTTPS
/***
https: {
port: 8000, // Regular port will redirect to this
key: 'key.pem',
cert: 'certificate.pem'
},
***/
// Database
db_host: 'localhost',
db_port: 27017,
db_name: 'letschatbro',
db_user: '',
db_password: '',
// Overrides the above settings (helpful for heroku)
db_url: process.env.DATABASE_URL,
// Security
// Please change these!
cookie_secret: 'KeyBoard Cat',
password_salt: 'Hello. Yes, This is Dog',
// Misc
debug: false,
media_url: '/media',
uploads_dir: 'uploads',
plugins_dir: 'plugins',
// Plugins
plugins: {
'emotes': {
file: 'emotes.js', // You should use file.local.js
url: 'emotes.json'
},
'replacements': {
file: 'replacements.js',
url: 'replacements.json'
}
},
// Allowed file types
allowed_file_types: [
'image/jpeg',
'image/png',
'image/gif',
],
// s3 credentials
/***
s3: {
accessKeyId: '',
secretAccessKey: '',
region: '',
bucket: ''
},
***/
}
module.exports = config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment