fix: remove google analytics ref and comments in config
This commit is contained in:
parent
142dfbcbe5
commit
a3fea58f4e
1 changed files with 4 additions and 20 deletions
24
config.js
24
config.js
|
@ -1,21 +1,10 @@
|
||||||
/* exports.database = {
|
|
||||||
type: 'mongodb',
|
|
||||||
hostname: 'localhost',
|
|
||||||
port: 27017,
|
|
||||||
database: 'scrumblr'
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
|
|
||||||
const { argv } = require('yargs').usage(
|
const { argv } = require('yargs').usage(
|
||||||
'Usage: $0 [--port INTEGER [8080]] \
|
'Usage: $0 [--port INTEGER [8080]] \
|
||||||
[--baseurl STRING ["/"]] \
|
[--baseurl STRING ["/"]] \
|
||||||
[--redis STRING:INT [127.0.0.1:6379]] \
|
[--redis STRING:INT [127.0.0.1:6379]] \
|
||||||
[--gaEnabled] \
|
|
||||||
[--gaAccount STRING [UA-2069672-4]] \
|
|
||||||
[--headerBarUrl STRING] \
|
[--headerBarUrl STRING] \
|
||||||
[--logoUrl STRING] \
|
[--logoUrl STRING] \
|
||||||
[--faviconUrl STRING] \ '
|
[--faviconUrl STRING] \ '
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
exports.server = {
|
exports.server = {
|
||||||
|
@ -23,20 +12,15 @@ exports.server = {
|
||||||
baseurl: argv.baseurl || '/'
|
baseurl: argv.baseurl || '/'
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.googleanalytics = {
|
|
||||||
enabled: argv.gaEnabled || false,
|
|
||||||
account: argv.gaAccount || 'UA-2069672-4'
|
|
||||||
}
|
|
||||||
|
|
||||||
const redis_conf = argv.redis || '127.0.0.1:6379'
|
const redis_conf = argv.redis || '127.0.0.1:6379'
|
||||||
exports.database = {
|
exports.database = {
|
||||||
sock: argv.sock || false,
|
sock: argv.sock || false,
|
||||||
type: 'redis',
|
type: 'redis',
|
||||||
prefix: '#scrumblr#',
|
prefix: '#memo#',
|
||||||
host: redis_conf.split(':')[0] || '127.0.0.1',
|
host: redis_conf.split(':')[0] || '127.0.0.1',
|
||||||
port: redis_conf.split(':')[1] || 6379
|
port: redis_conf.split(':')[1] || 6379
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.headerBarUrl = argv.headerBarUrl || null /* example url with appropriate json markup : 'https://colibris-lemouvement.org/archipel-markup?domain=colibris-outilslibres.org' */
|
exports.headerBarUrl = argv.headerBarUrl || null
|
||||||
exports.logoUrl = argv.logoUrl || null /* example logo url : 'https://postit.colibris-outilslibres.org/images/logo-Post-it.svg' */
|
exports.logoUrl = argv.logoUrl || null
|
||||||
exports.faviconUrl = argv.faviconUrl || null /* example favicon url : 'https://postit.colibris-outilslibres.org/images/favicon.png' */
|
exports.faviconUrl = argv.faviconUrl || null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue