|
|
@@ -1,5 +1,4 @@
|
|
|
const debug = require('debug')('growi:service:ConfigManager');
|
|
|
-const pathUtils = require('growi-commons').pathUtils;
|
|
|
const ConfigLoader = require('../service/config-loader');
|
|
|
|
|
|
const KEYS_FOR_SAML_USE_ONLY_ENV_OPTION = [
|
|
|
@@ -71,27 +70,6 @@ class ConfigManager {
|
|
|
return this.searchOnlyFromEnvVarConfigs(namespace, key);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * get the site url
|
|
|
- *
|
|
|
- * If the config for the site url is not set, this returns a message "[The site URL is not set. Please set it!]".
|
|
|
- *
|
|
|
- * With version 3.2.3 and below, there is no config for the site URL, so the system always uses auto-generated site URL.
|
|
|
- * With version 3.2.4 to 3.3.4, the system uses the auto-generated site URL only if the config is not set.
|
|
|
- * With version 3.3.5 and above, the system use only a value from the config.
|
|
|
- */
|
|
|
- /* eslint-disable no-else-return */
|
|
|
- getSiteUrl() {
|
|
|
- const siteUrl = this.getConfig('crowi', 'app:siteUrl');
|
|
|
- if (siteUrl != null) {
|
|
|
- return pathUtils.removeTrailingSlash(siteUrl);
|
|
|
- }
|
|
|
- else {
|
|
|
- return '[The site URL is not set. Please set it!]';
|
|
|
- }
|
|
|
- }
|
|
|
- /* eslint-enable no-else-return */
|
|
|
-
|
|
|
// CONF.RF refactor file-uploader
|
|
|
// create parent class and each uploader inherits from it.
|
|
|
getIsUploadable() {
|