Skip to content

Commit

Permalink
[config] - Add env variables to enable faq, tos and pp pages #357
Browse files Browse the repository at this point in the history
  • Loading branch information
sachalifs committed May 28, 2014
1 parent 424d3b2 commit 0cd068b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion config/sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,8 @@
"google analytics tracking id" : "",
"rss enabled" : true,
"comments per page": 0,
"spam limit": 5
"spam limit": 5,
"faq enabled": false,
"tos enabled": false,
"pp enabled": false
}
7 changes: 5 additions & 2 deletions lib/config/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
publicPort: env.PUBLIC_PORT,
privatePort: env.PORT,
mongoUrl: env.MONGOHQ_URL,
client: env.CLIENT_CONF ? env.CLIENT_CONF.split(',') : [ "protocol", "host", "publicPort", "env", "locale", "logo", "favicon", "organization name", "organization url", "learn more url", "google analytics tracking id", "comments per page", "spam limit" ],
client: env.CLIENT_CONF ? env.CLIENT_CONF.split(',') : [ "protocol", "host", "publicPort", "env", "locale", "logo", "favicon", "organization name", "organization url", "learn more url", "google analytics tracking id", "comments per page", "spam limit", "faq enabled", "pp enabled", "tos enabled" ],
auth: {
basic: {
username: env.BASIC_USERNAME,
Expand Down Expand Up @@ -54,5 +54,8 @@ module.exports = {
"google analytics tracking id" : env.GOOGLE_ANALYTICS_TRACKING_ID,
"rss enabled" : env.RSS_ENABLED,
"comments per page": env.COMMENTS_PER_PAGE,
"spam limit": env.SPAM_LIMIT
"spam limit": env.SPAM_LIMIT,
"faq enabled": env.FAQ_ENABLED,
"tos enabled": env.TERMS_OF_SERVICE_ENABLED,
"pp enabled": env.PRIVACY_POLICY_ENABLED
};

0 comments on commit 0cd068b

Please sign in to comment.