Configuration Properties

The following options can be set in the file WEB-INF/classes/application.properties:

jsregistry.workspace.folder

The file workspace of the JS Registry.
Default: $\{data.directory.location\}/jspackages.

jsregistry.service.url

The base URL of the JS Registry.

jsregistry.root.url

The root endpoint of the JS Registry.

jsregistry.upload.enabled

Set to true if the JS Registry shall allow uploading of resources into the registry.
Default: true.

jsregistry.cache.enabled

Indicates whether the bundles.js, layer.js, and bundles.json endpoints use a cache (set to true in production environment).

jsregistry.classpathscanner.skipfilelocations

Indicates if the classpath scanner only considers JAR resources and skips extracted resources for example inside classes directories.
Default: true.

jsregistry.classpathscanner.refreshperiod

Time in milliseconds between successive classpath scans.
Default: -1 (scan only once at startup).

jsregistry.directoryscanner.folder

The folder to be scanned for packages.
Default: the js folder.

jsregistry.directoryscanner.url

The context relative URL to the scanned folder. It is used to calculate the location URLs.
Default: "", no location URLs are generated.

jsregistry.directoryscanner.includes

Filter to indicate which directories are included in the scan.
Default: "**" (all).

jsregistry.directoryscanner.excludes

Filter to indicate which directories shall be excluded from scanning.
Default: sample/**,apps/**.

jsregistry.directoryscanner.refreshperiod

Time in milliseconds between successive directory scans.
Default: 5000.

jsregistry.directoryscanner.registerAsFileLocation

Flag to indicate that the scanned packages are registered as files and the contents are not imported into the database.
If true, all packages are "uploaded" into the database.

jsregistry.archivescanner.folder

The folder to be scanned for JAR or zip files, which contain packages that get imported.
Default: WEB-INF/bundle-import.

jsregistry.archivescanner.refreshperiod

Time in milliseconds between successive scans.
Default: -1 (scan only once at startup).

jsregistry.archivescanner.importByReference

Flag indicating whether only bundle metadata is imported (true) or whether bundles within archives are extracted and imported in full (false). The archives are deleted after full import.
Default: true.