|
|
@@ -118,6 +118,15 @@ const ErrorV3 = require('../../models/vo/error-apiv3');
|
|
|
* gcsUploadNamespace:
|
|
|
* type: string
|
|
|
* description: name space of gcs
|
|
|
+ * envGcsApiKeyJsonPath:
|
|
|
+ * type: string
|
|
|
+ * description: Path of the JSON file that contains service account key to authenticate to GCP API
|
|
|
+ * envGcsBucket:
|
|
|
+ * type: string
|
|
|
+ * description: Name of the GCS bucket
|
|
|
+ * envGcsUploadNamespace:
|
|
|
+ * type: string
|
|
|
+ * description: Directory name to create in the bucket
|
|
|
* PluginSettingParams:
|
|
|
* description: PluginSettingParams
|
|
|
* type: object
|
|
|
@@ -218,6 +227,9 @@ module.exports = (crowi) => {
|
|
|
s3Bucket: crowi.configManager.getConfig('crowi', 'aws:bucket'),
|
|
|
s3AccessKeyId: crowi.configManager.getConfig('crowi', 'aws:accessKeyId'),
|
|
|
s3SecretAccessKey: crowi.configManager.getConfig('crowi', 'aws:secretAccessKey'),
|
|
|
+ envGcsApiKeyJsonPath: crowi.configManager.getConfigFromEnvVars('crowi', 'gcs:apiKeyJsonPath'),
|
|
|
+ envGcsBucket: crowi.configManager.getConfigFromEnvVars('crowi', 'gcs:bucket'),
|
|
|
+ envGcsUploadNamespace: crowi.configManager.getConfigFromEnvVars('crowi', 'gcs:uploadNamespace'),
|
|
|
isEnabledPlugins: crowi.configManager.getConfig('crowi', 'plugin:isEnabledPlugins'),
|
|
|
};
|
|
|
return res.apiv3({ appSettingsParams });
|