|
|
@@ -24,6 +24,10 @@ const KEYS_FOR_SAML_USE_ONLY_ENV_OPTION = [
|
|
|
'security:passport-saml:ABLCRule',
|
|
|
];
|
|
|
|
|
|
+const KEYS_FOR_FIEL_UPLOAD_USE_ONLY_ENV_OPTION = [
|
|
|
+ 'app:fileUploadType',
|
|
|
+];
|
|
|
+
|
|
|
const KEYS_FOR_GCP_USE_ONLY_ENV_OPTION = [
|
|
|
'gcs:apiKeyJsonPath',
|
|
|
'gcs:bucket',
|
|
|
@@ -224,6 +228,9 @@ class ConfigManager extends S2sMessageHandlable {
|
|
|
KEYS_FOR_SAML_USE_ONLY_ENV_OPTION.includes(key)
|
|
|
&& this.defaultSearch('crowi', 'security:passport-saml:useOnlyEnvVarsForSomeOptions')
|
|
|
)
|
|
|
+ // file upload option
|
|
|
+ // [TODO GW-4173] control with the env var gcs:isFileUploadEnvPrioritizes
|
|
|
+ || KEYS_FOR_FIEL_UPLOAD_USE_ONLY_ENV_OPTION.includes(key)
|
|
|
// gcp option
|
|
|
|| (
|
|
|
KEYS_FOR_GCP_USE_ONLY_ENV_OPTION.includes(key)
|