Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where is the config file ? #6

Closed
yifei12100539 opened this issue Sep 27, 2012 · 3 comments
Closed

where is the config file ? #6

yifei12100539 opened this issue Sep 27, 2012 · 3 comments

Comments

@yifei12100539
Copy link

No description provided.

@jareiko
Copy link
Contributor

jareiko commented Sep 27, 2012

config.js is not checked in because it contains API secrets. It's not an
ideal situation but I can't think of any better way to do it.

I've pasted its current contents below, with secrets replaced with 'xxx'.
I'm not sure if MONGODB_DATABASE is actually used, now that I'm using
mongoose.

// Copyright (c) 2012 jareiko. All rights reserved.

// Configuration for databases, etc.

exports.FACEBOOK_APP_ID = 'xxx';
exports.FACEBOOK_APP_SECRET = 'xxx';
exports.TWITTER_APP_KEY = 'xxx'
exports.TWITTER_APP_SECRET = 'xxx';
exports.SESSION_SECRET = 'xxx';

exports.MONGODB_HOST = 'xxx';
exports.MONGODB_PORT = 27017;
exports.MONGODB_DATABASE = 'trigger';

MONGOOSE_HOST = 'xxx';
MONGOOSE_DB = 'trigger-prod';

exports.MONGOOSE_URL = 'mongodb://' + MONGOOSE_HOST + '/' + MONGOOSE_DB;

@yifei12100539
Copy link
Author

2012/9/27 Jasmine Kent notifications@github.com

config.js is not checked in because it contains API secrets. It's not an
ideal situation but I can't think of any better way to do it.

I've pasted its current contents below, with secrets replaced with 'xxx'.
I'm not sure if MONGODB_DATABASE is actually used, now that I'm using
mongoose.

// Copyright (c) 2012 jareiko. All rights reserved.

// Configuration for databases, etc.

exports.FACEBOOK_APP_ID = 'xxx';
exports.FACEBOOK_APP_SECRET = 'xxx';
exports.TWITTER_APP_KEY = 'xxx'
exports.TWITTER_APP_SECRET = 'xxx';
exports.SESSION_SECRET = 'xxx';

exports.MONGODB_HOST = 'xxx';
exports.MONGODB_PORT = 27017;
exports.MONGODB_DATABASE = 'trigger';

MONGOOSE_HOST = 'xxx';
MONGOOSE_DB = 'trigger-prod';

exports.MONGOOSE_URL = 'mongodb://' + MONGOOSE_HOST + '/' + MONGOOSE_DB;


Reply to this email directly or view it on GitHubhttps://github.com/jareiko/TriggerRallyOE/issues/6#issuecomment-8930164.

Thank you for replying to my email
nice work!!

@jareiko jareiko closed this as completed Sep 29, 2012
@cnip
Copy link

cnip commented Oct 9, 2012

local stragy may be a choice ,, waiting for the detail !!

@jareiko jareiko mentioned this issue Oct 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants