Liferay OSGi Config Generator
Generate Liferay OSGi .config files for osgi/configs. Pick a component for a typed property form, or use custom mode for any PID. Correct Felix format.
1. Choose a component
2. Configure properties
Allowed upload file extensions (one per line). "*" allows all extensions.
String[]Maximum stored versions per file entry. 0 keeps all versions.
IntegerInterval, in minutes, for the temporary-file cleanup job.
IntegerExpire all versions of a file when it expires.
BooleanAllow the versioning strategy to be overridden.
BooleanAdd another property
3. Generated com.liferay.document.library.configuration.DLConfiguration.config
Drop this file into [Liferay Home]/osgi/configs/.
Prefer the plain .cfg format? (com.liferay.document.library.configuration.DLConfiguration.cfg)
The .config format is preferred — it carries types and supports multi-valued properties. Use .cfg only for simple scalar values.
Liferay Documents & Media (DL) OSGi Configuration
Allowed file types, versioning, and the cleanup interval for the Documents and Media library.
PID: com.liferay.document.library.configuration.DLConfiguration
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| fileExtensions | String[] | * | Allowed upload file extensions (one per line). "*" allows all extensions. |
| maximumNumberOfVersions | Integer | 0 | Maximum stored versions per file entry. 0 keeps all versions. |
| checkInterval | Integer | 15 | Interval, in minutes, for the temporary-file cleanup job. |
| expireAllVersionsEnabled | Boolean | false | Expire all versions of a file when it expires. |
| versioningStrategyOverridable | Boolean | true | Allow the versioning strategy to be overridden. |
These are the common, verified properties. Add any others for this PID with the custom-property row in the form above, then drop the file into [Liferay Home]/osgi/configs.