|
@@ -44,54 +44,54 @@ module.exports = function(crowi) {
|
|
|
{
|
|
{
|
|
|
return {
|
|
return {
|
|
|
//'app:installed' : "0.0.0",
|
|
//'app:installed' : "0.0.0",
|
|
|
- 'app:title': 'Crowi',
|
|
|
|
|
- 'app:confidential': '',
|
|
|
|
|
-
|
|
|
|
|
- 'app:fileUpload': false,
|
|
|
|
|
-
|
|
|
|
|
- 'security:restrictGuestMode': 'Deny',
|
|
|
|
|
-
|
|
|
|
|
- 'security:registrationMode': 'Open',
|
|
|
|
|
- 'security:registrationWhiteList': [],
|
|
|
|
|
-
|
|
|
|
|
- 'security:isEnabledPassport': false,
|
|
|
|
|
- 'security:passport-ldap:isEnabled': false,
|
|
|
|
|
- 'security:passport-ldap:serverUrl': undefined,
|
|
|
|
|
- 'security:passport-ldap:isUserBind': undefined,
|
|
|
|
|
- 'security:passport-ldap:bindDN': undefined,
|
|
|
|
|
- 'security:passport-ldap:bindDNPassword': undefined,
|
|
|
|
|
- 'security:passport-ldap:searchFilter': undefined,
|
|
|
|
|
- 'security:passport-ldap:attrMapUsername': undefined,
|
|
|
|
|
- 'security:passport-ldap:groupSearchBase': undefined,
|
|
|
|
|
- 'security:passport-ldap:groupSearchFilter': undefined,
|
|
|
|
|
- 'security:passport-ldap:groupDnProperty': undefined,
|
|
|
|
|
-
|
|
|
|
|
- 'aws:bucket': 'crowi',
|
|
|
|
|
- 'aws:region': 'ap-northeast-1',
|
|
|
|
|
- 'aws:accessKeyId': '',
|
|
|
|
|
- 'aws:secretAccessKey': '',
|
|
|
|
|
-
|
|
|
|
|
- 'mail:from': '',
|
|
|
|
|
- 'mail:smtpHost': '',
|
|
|
|
|
- 'mail:smtpPort': '',
|
|
|
|
|
- 'mail:smtpUser': '',
|
|
|
|
|
- 'mail:smtpPassword': '',
|
|
|
|
|
-
|
|
|
|
|
- 'google:clientId': '',
|
|
|
|
|
- 'google:clientSecret': '',
|
|
|
|
|
-
|
|
|
|
|
- 'plugin:isEnabledPlugins': true,
|
|
|
|
|
-
|
|
|
|
|
- 'customize:css': '',
|
|
|
|
|
- 'customize:script': '',
|
|
|
|
|
- 'customize:header': '',
|
|
|
|
|
- 'customize:title': '',
|
|
|
|
|
- 'customize:highlightJsStyle': 'github',
|
|
|
|
|
- 'customize:highlightJsStyleBorder': false,
|
|
|
|
|
- 'customize:behavior': 'crowi',
|
|
|
|
|
- 'customize:layout': 'crowi',
|
|
|
|
|
- 'customize:isEnabledTimeline': true,
|
|
|
|
|
- 'customize:isSavedStatesOfTabChanges': true,
|
|
|
|
|
|
|
+ 'app:title' : 'Crowi',
|
|
|
|
|
+ 'app:confidential' : '',
|
|
|
|
|
+
|
|
|
|
|
+ 'app:fileUpload' : false,
|
|
|
|
|
+
|
|
|
|
|
+ 'security:restrictGuestMode' : 'Deny',
|
|
|
|
|
+
|
|
|
|
|
+ 'security:registrationMode' : 'Open',
|
|
|
|
|
+ 'security:registrationWhiteList' : [],
|
|
|
|
|
+
|
|
|
|
|
+ 'security:isEnabledPassport' : false,
|
|
|
|
|
+ 'security:passport-ldap:isEnabled' : false,
|
|
|
|
|
+ 'security:passport-ldap:serverUrl' : undefined,
|
|
|
|
|
+ 'security:passport-ldap:isUserBind' : undefined,
|
|
|
|
|
+ 'security:passport-ldap:bindDN' : undefined,
|
|
|
|
|
+ 'security:passport-ldap:bindDNPassword' : undefined,
|
|
|
|
|
+ 'security:passport-ldap:searchFilter' : undefined,
|
|
|
|
|
+ 'security:passport-ldap:attrMapUsername' : undefined,
|
|
|
|
|
+ 'security:passport-ldap:groupSearchBase' : undefined,
|
|
|
|
|
+ 'security:passport-ldap:groupSearchFilter' : undefined,
|
|
|
|
|
+ 'security:passport-ldap:groupDnProperty' : undefined,
|
|
|
|
|
+
|
|
|
|
|
+ 'aws:bucket' : 'crowi',
|
|
|
|
|
+ 'aws:region' : 'ap-northeast-1',
|
|
|
|
|
+ 'aws:accessKeyId' : '',
|
|
|
|
|
+ 'aws:secretAccessKey' : '',
|
|
|
|
|
+
|
|
|
|
|
+ 'mail:from' : '',
|
|
|
|
|
+ 'mail:smtpHost' : '',
|
|
|
|
|
+ 'mail:smtpPort' : '',
|
|
|
|
|
+ 'mail:smtpUser' : '',
|
|
|
|
|
+ 'mail:smtpPassword' : '',
|
|
|
|
|
+
|
|
|
|
|
+ 'google:clientId' : '',
|
|
|
|
|
+ 'google:clientSecret' : '',
|
|
|
|
|
+
|
|
|
|
|
+ 'plugin:isEnabledPlugins' : true,
|
|
|
|
|
+
|
|
|
|
|
+ 'customize:css' : '',
|
|
|
|
|
+ 'customize:script' : '',
|
|
|
|
|
+ 'customize:header' : '',
|
|
|
|
|
+ 'customize:title' : '',
|
|
|
|
|
+ 'customize:highlightJsStyle' : 'github',
|
|
|
|
|
+ 'customize:highlightJsStyleBorder' : false,
|
|
|
|
|
+ 'customize:behavior' : 'crowi',
|
|
|
|
|
+ 'customize:layout' : 'crowi',
|
|
|
|
|
+ 'customize:isEnabledTimeline' : true,
|
|
|
|
|
+ 'customize:isSavedStatesOfTabChanges' : true,
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -134,7 +134,7 @@ module.exports = function(crowi) {
|
|
|
{
|
|
{
|
|
|
var originalConfig = crowi.getConfig();
|
|
var originalConfig = crowi.getConfig();
|
|
|
var newNSConfig = originalConfig[ns] || {};
|
|
var newNSConfig = originalConfig[ns] || {};
|
|
|
- Object.keys(config).forEach(function(key) {
|
|
|
|
|
|
|
+ Object.keys(config).forEach(function (key) {
|
|
|
if (config[key] || config[key] === '' || config[key] === false) {
|
|
if (config[key] || config[key] === '' || config[key] === false) {
|
|
|
newNSConfig[key] = config[key];
|
|
newNSConfig[key] = config[key];
|
|
|
}
|
|
}
|
|
@@ -395,13 +395,13 @@ module.exports = function(crowi) {
|
|
|
{
|
|
{
|
|
|
const key = 'customize:isEnabledTimeline';
|
|
const key = 'customize:isEnabledTimeline';
|
|
|
return getValueForCrowiNS(config, key);
|
|
return getValueForCrowiNS(config, key);
|
|
|
- }
|
|
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
configSchema.statics.isSavedStatesOfTabChanges = function(config)
|
|
configSchema.statics.isSavedStatesOfTabChanges = function(config)
|
|
|
{
|
|
{
|
|
|
const key = 'customize:isSavedStatesOfTabChanges';
|
|
const key = 'customize:isSavedStatesOfTabChanges';
|
|
|
return getValueForCrowiNS(config, key);
|
|
return getValueForCrowiNS(config, key);
|
|
|
- }
|
|
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
configSchema.statics.fileUploadEnabled = function(config)
|
|
configSchema.statics.fileUploadEnabled = function(config)
|
|
|
{
|
|
{
|