blob: c940eb8942b2e5998edce06e92ad39796db39223 [file] [log] [blame]
margaretha46e2c952024-05-23 09:09:54 +02001# Krill settings
2#
3# A sample configuration for the DNB instance
4
5krill.match.max.token=1
6krill.context.max.token=25
7
8krill.indexDir = sample-index
9
10krill.index.commit.count = 134217000
11krill.index.commit.log = log/krill.commit.log
12krill.index.commit.auto = 500
13krill.index.relations.max = 100
14# Directory path of virtual corpora to cache
15krill.namedVC = vc
16krill.test = true
17
18# LDAP configuration file
19#
20ldap.config = src/test/resources/test-ldap.conf
21
22# Kustvakt versions
23#
margarethacdd26e62024-07-12 12:40:26 +020024# multiple versions comma separated
margaretha46e2c952024-05-23 09:09:54 +020025current.api.version = v1.0
margarethacdd26e62024-07-12 12:40:26 +020026supported.api.versions = v1.0
margaretha46e2c952024-05-23 09:09:54 +020027
28# Server
29#
30server.port=8089
31server.host=localhost
32
margaretha46e2c952024-05-23 09:09:54 +020033# Default foundries for specific layers (optional)
34#
35default.foundry.partOfSpeech = tt
36default.foundry.lemma = tt
37default.foundry.orthography = opennlp
38default.foundry.dependency = malt
39default.foundry.constituent = corenlp
40default.foundry.morphology = marmot
41default.foundry.surface = base
42
43# Delete configuration (default hard)
44#
45# delete.auto.group = hard
46delete.group = soft
47delete.group.member = soft
48
49# Virtual corpus and queries
50max.user.persistent.queries = 5
51
52# Availability regex only support |
53# It should be removed/commented when the data doesn't contain availability field.
54#
Marc Kupietze4528ee2024-07-04 16:28:37 +020055availability.regex.free = CC.*
margaretha46e2c952024-05-23 09:09:54 +020056availability.regex.public = ACA.*|QAO-NC
57availability.regex.all = QAO.*
58
59
margaretha46e2c952024-05-23 09:09:54 +020060# options referring to the security module!
61
62# OAuth
63# (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible
64# oauth.password.authentication values)
65#
66oauth2.password.authentication = TEST
67oauth2.native.client.host = korap.ids-mannheim.de
68oauth2.max.attempts = 2
69# expiry in seconds (S), minutes (M), hours (H), days (D)
70oauth2.access.token.expiry = 3M
71oauth2.refresh.token.expiry = 90D
72oauth2.authorization.code.expiry = 10M
73# -- scopes separated by space
74oauth2.default.scopes = search match_info
75oauth2.client.credentials.scopes = client_info
76
77oauth2.initial.super.client=true
78
79
80# see SecureRandom Number Generation Algorithms
81# optional
82security.secure.random.algorithm=SHA1PRNG
83
84# see MessageDigest Algorithms
85# default MD5
86security.md.algoritm = SHA-256
87
88# secure hash support: BCRYPT
89security.secure.hash.algorithm=BCRYPT
90security.encryption.loadFactor = 10
91
92# DEPRECATED
93# JWT
94security.jwt.issuer=https://korap.ids-mannheim.de
95security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits
96
97# token expiration time
98security.longTokenTTL = 1D
99security.tokenTTL = 2S
100security.shortTokenTTL = 1S
101
102# Session authentication
103security.idleTimeoutDuration = 25M
104security.multipleLogIn = true
105security.loginAttemptNum = 3
106security.authAttemptTTL = 45M