blob: 54e0edf63323e3404f413e31f8af8787cc955eea [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
33# Mail settings
34#
35mail.enabled = false
36mail.receiver = test@localhost
37mail.sender = noreply@ids-mannheim.de
38mail.address.retrieval = test
39
40# Mail.templates
41#
42template.group.invitation = notification.vm
43
44# Default foundries for specific layers (optional)
45#
46default.foundry.partOfSpeech = tt
47default.foundry.lemma = tt
48default.foundry.orthography = opennlp
49default.foundry.dependency = malt
50default.foundry.constituent = corenlp
51default.foundry.morphology = marmot
52default.foundry.surface = base
53
54# Delete configuration (default hard)
55#
56# delete.auto.group = hard
57delete.group = soft
58delete.group.member = soft
59
60# Virtual corpus and queries
61max.user.persistent.queries = 5
62
63# Availability regex only support |
64# It should be removed/commented when the data doesn't contain availability field.
65#
Marc Kupietze4528ee2024-07-04 16:28:37 +020066availability.regex.free = CC.*
margaretha46e2c952024-05-23 09:09:54 +020067availability.regex.public = ACA.*|QAO-NC
68availability.regex.all = QAO.*
69
70
margaretha46e2c952024-05-23 09:09:54 +020071# options referring to the security module!
72
73# OAuth
74# (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible
75# oauth.password.authentication values)
76#
77oauth2.password.authentication = TEST
78oauth2.native.client.host = korap.ids-mannheim.de
79oauth2.max.attempts = 2
80# expiry in seconds (S), minutes (M), hours (H), days (D)
81oauth2.access.token.expiry = 3M
82oauth2.refresh.token.expiry = 90D
83oauth2.authorization.code.expiry = 10M
84# -- scopes separated by space
85oauth2.default.scopes = search match_info
86oauth2.client.credentials.scopes = client_info
87
88oauth2.initial.super.client=true
89
90
91# see SecureRandom Number Generation Algorithms
92# optional
93security.secure.random.algorithm=SHA1PRNG
94
95# see MessageDigest Algorithms
96# default MD5
97security.md.algoritm = SHA-256
98
99# secure hash support: BCRYPT
100security.secure.hash.algorithm=BCRYPT
101security.encryption.loadFactor = 10
102
103# DEPRECATED
104# JWT
105security.jwt.issuer=https://korap.ids-mannheim.de
106security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits
107
108# token expiration time
109security.longTokenTTL = 1D
110security.tokenTTL = 2S
111security.shortTokenTTL = 1S
112
113# Session authentication
114security.idleTimeoutDuration = 25M
115security.multipleLogIn = true
116security.loginAttemptNum = 3
117security.authAttemptTTL = 45M