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 is
$\{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 istrue
. - jsregistry.distribution.enabled
-
Set to
true
to allow the distribution of packages (required for npm compatibility). Default isfalse
. - jsregistry.cache.enabled
-
Indicates whether the
bundles.js
,layer.js
, andbundles.json
endpoints use a cache (set totrue
in production environment). - jsregistry.cache.maxcachetime
-
Define the maximal cache time in milliseconds for example
3600000
(1h). - jsregistry.classpathscanner.skipfilelocations
-
Indicates if the classpath scanner only considers JAR resources and skips extracted resources for example inside classes directories. Default is
true
. - jsregistry.classpathscanner.refreshperiod
-
Time in milliseconds between successive classpath scans. Default is
-1
(scan only once at startup). - jsregistry.directoryscanner.folder
-
The folder to be scanned for packages. Default is the js folder.
- jsregistry.directoryscanner.url
-
The context relative URL to the scanned folder. It is used to calculate the location URLs. Default is
""
, no location URLs are generated. - jsregistry.directoryscanner.includes
-
Filter to indicate which directories are included in the scan. Default is
"**"
(all). - jsregistry.directoryscanner.excludes
-
Filter to indicate which directories shall be excluded from scanning. Default is
sample/**,apps/**
. - jsregistry.directoryscanner.refreshperiod
-
Time in milliseconds between successive directory scans. Default is
5000
. - jsregistry.directoryscanner.buildDistributionFiles
-
Flag to indicate that distribution tar and zip files are generated during the package imports. This is only relevant if the registry is used together with npm.
- 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. Defaults to
WEB-INF/bundle-import
. - jsregistry.archivescanner.refreshperiod
-
Time in milliseconds between successive scans. Default is
-1
(scan only once at startup). - jsregistry.archivescanner.importByReference
-
Flag to indicate, if only the bundle metadata is imported (
true
) or bundles inside the archives are extracted and fully imported (false
). The archives are deleted after full import. Default istrue
.