add headerbar and logo options as command line arguments
This commit is contained in:
parent
2a292ade9b
commit
601d7968db
2 changed files with 15 additions and 8 deletions
18
config.js
18
config.js
|
@ -7,7 +7,16 @@
|
|||
*/
|
||||
|
||||
var argv = require("yargs").usage(
|
||||
'Usage: $0 [--port INTEGER [8080]] [--baseurl STRING ["/"]] [--redis STRING:INT [127.0.0.1:6379]] [--gaEnabled] [--gaAccount STRING [UA-2069672-4]]'
|
||||
'Usage: $0 [--port INTEGER [8080]] \
|
||||
[--baseurl STRING ["/"]] \
|
||||
[--redis STRING:INT [127.0.0.1:6379]] \
|
||||
[--gaEnabled] \
|
||||
[--gaAccount STRING [UA-2069672-4]] \
|
||||
[--headerBarUrl STRING] \
|
||||
[--logoUrl STRING] \
|
||||
[--faviconUrl STRING] \ '
|
||||
|
||||
|
||||
).argv
|
||||
|
||||
exports.server = {
|
||||
|
@ -29,7 +38,6 @@ exports.database = {
|
|||
port: redis_conf.split(":")[1] || 6379,
|
||||
}
|
||||
|
||||
exports.headerBarUrl =
|
||||
null /* example url with appropriate json markup : 'https://colibris-lemouvement.org/archipel-markup?domain=colibris-outilslibres.org' */
|
||||
exports.logoUrl = null /* example logo url : 'https://postit.colibris-outilslibres.org/images/logo-Post-it.svg' */
|
||||
exports.faviconUrl = null /* example favicon url : 'https://postit.colibris-outilslibres.org/images/favicon.png' */
|
||||
exports.headerBarUrl = argv['headerBarUrl'] || null /* example url with appropriate json markup : 'https://colibris-lemouvement.org/archipel-markup?domain=colibris-outilslibres.org' */
|
||||
exports.logoUrl = argv['logoUrl'] || null /* example logo url : 'https://postit.colibris-outilslibres.org/images/logo-Post-it.svg' */
|
||||
exports.faviconUrl = argv['faviconUrl'] || null /* example favicon url : 'https://postit.colibris-outilslibres.org/images/favicon.png' */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue