-
Notifications
You must be signed in to change notification settings - Fork 3
Setting a Custom Environment
Kustvakt configurations can be customized and all customized configs should be located at the /data
folder including:
Copy the default Kustvakt configuration file (kustvakt.conf or kustvakt-lite.conf, to the data folder at the project directory. Please do not change the name of the file.
Set krill.indexDir in the configuration file to the location of a Krill index (relative path to the jar). By default, Kustvakt uses the sample index located at the root project directory.
krill.indexDir = sample-index
Default port
server.port = 8089
The following properties define the default foundries used for specific layers. Default foundries are used in rewrites to add missing foundries in KoralQueries.
default.foundry.partOfSpeech = tt
default.foundry.lemma = tt
default.foundry.orthography = opennlp
default.foundry.dependency = malt
default.foundry.constituent = corenlp
default.foundry.morphology = marmot
default.foundry.surface = base
Copy jdbc.properties
to the data folder. Please do not change the filename.
jdbc.database=sqlite jdbc.driverClassName=org.sqlite.JDBC jdbc.url=jdbc:sqlite://[data]/[database-name] jdbc.username=username jdbc.password=password jdbc.schemaPath=db/sqlite, db/predefined
jdbc.schemaPath
is used for database migration using Flyway and it corresponds to Flyway locations option. By default, the paths are interpreted as classpaths. To point to external directories, use the prefix filesystem
, for instance filesystem:sql
.
For the test suite, jdbc.schemaPath
includes test data defined in /src/main/resources/db/test
.
Copy the default-config.xml
to the data folder.
Query rewrites can be customized in the Spring XML config. See Disabling-Query-Rewrites
- Importing Kustvakt to Eclipse
- Installing Lombok
- Setting annotation processors
- Setting a test environment
- HTTP Basic Authentication
- OAuth2 authorization scopes
- OAuth2 authorization request
- OAuth2 token request
- OAuth2 token revocation
- OAuth2 client registration
- OAuth2 client info
- OAuth2 client deregistration
- OAuth2 client secret reset
- Plugin registration
- Plugin list (marketplace)
- Plugin installation
- Plugin uninstallation
- Installed plugin list
- VC creation and update
- VC deletion
- VC list
- VC info
- VC KoralQuery
- VC statistics
- VC statistics with KoralQuery