blob: 31642afb0007ccba41c184e52124ebe1a8d61966 [file] [log] [blame]
margaretha8db56a12025-10-07 09:26:40 +02001# This is the default configuration for Kustvakt full version
2# Copy this file to data/kustvakt.conf and adjust settings
3
margarethafbfe2872024-01-04 23:29:28 +01004#Krill
5krill.indexDir= sample-index
6
7krill.index.commit.count = 134217000
8krill.index.commit.log = log/krill.commit.log
9krill.index.commit.auto = 500
10krill.index.relations.max = 100
11# Directory path of virtual corpora to cache
margaretha390f37d2024-04-22 12:07:34 +020012#krill.namedVC = data/vc
margarethafbfe2872024-01-04 23:29:28 +010013
14# LDAP
15ldap.config = src/main/resources/embedded-ldap-example.conf
16
17# Kustvakt
18api.welcome.message = Welcome to KorAP API!
19current.api.version = v1.0
margarethacdd26e62024-07-12 12:40:26 +020020# multiple versions comma separated
21# supported.api.versions = v1.0
margarethafbfe2872024-01-04 23:29:28 +010022
23# server
24server.port=8089
25server.host=localhost
26
margaretha8db56a12025-10-07 09:26:40 +020027# log
28log.request.enabled = false
29
30# Cache
31cache.total.results.enabled = true
32
margaretha4fc0ce62025-07-16 09:03:45 +020033# Timeout
34# timeout.guest = 10000 (default)
35# timeout.login = 90000 (default)
36
margaretha8db56a12025-10-07 09:26:40 +020037
margarethaca9a3242025-06-24 09:11:50 +020038# Pipe (optional)
margarethad0f36512025-07-04 11:06:10 +020039# pipe.host=https://korap.ids-mannheim.de
margarethaca9a3242025-06-24 09:11:50 +020040
margarethafbfe2872024-01-04 23:29:28 +010041# default foundries for specific layers
42default.foundry.partOfSpeech = tt
43default.foundry.lemma = tt
44default.foundry.orthography = opennlp
45default.foundry.dependency = malt
46default.foundry.constituent = corenlp
47default.foundry.morphology = marmot
48default.foundry.surface = base
49
margaretha70536f52025-10-07 09:15:22 +020050# Virtual corpus and queries
51max.user.persistent.queries = 5
margaretha8db56a12025-10-07 09:26:40 +020052# max.token.context.size = 40
margaretha70536f52025-10-07 09:15:22 +020053vc.list.statistics.enabled = false
margarethafbfe2872024-01-04 23:29:28 +010054
55# Availability regex only support |
56# It should be removed/commented when the data doesn't contain availability field.
57#
Marc Kupietze4528ee2024-07-04 16:28:37 +020058availability.regex.free = CC.*
margarethafbfe2872024-01-04 23:29:28 +010059availability.regex.public = ACA.*|QAO-NC
60availability.regex.all = QAO.*
61
margarethafbfe2872024-01-04 23:29:28 +010062# options referring to the security module!
63
64# OAuth
65# (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible
66# oauth.password.authentication values)
67oauth2.password.authentication = LDAP
68# used to determine native client, currently not used
69# oauth2.native.client.host = korap.ids-mannheim.de
70oauth2.max.attempts = 1
71# expiry in seconds (S), minutes (M), hours (H), days (D)
72oauth2.access.token.expiry = 1D
73oauth2.refresh.token.expiry = 90D
74# default 365D
75# oauth2.access.token.long.expiry = 365D
76# oauth2.refresh.token.long.expiry = 365D
77oauth2.authorization.code.expiry = 10M
78# scopes separated by space
79oauth2.default.scopes = search match_info
80oauth2.client.credentials.scopes = client_info
margaretha8db56a12025-10-07 09:26:40 +020081oauth2.initial.super.client = false
margarethafbfe2872024-01-04 23:29:28 +010082
83## see SecureRandom Number Generation Algorithms
84## optional
85# security.secure.random.algorithm=SHA1PRNG
86
87## see MessageDigest Algorithms
88## default MD5
89security.md.algoritm = SHA-256
90
91### secure hash support: BCRYPT
92security.secure.hash.algorithm=BCRYPT
93security.encryption.loadFactor = 10
94
95# DEPRECATED
96# JWT
97security.jwt.issuer=korap.ids-mannheim.de
98security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits
99
100## token expiration (used in other authentication provider than OAuth2)
101security.longTokenTTL=150D
102security.tokenTTL=72H
103security.shortTokenTTL=45M
104
105# Session authentication
106security.idleTimeoutDuration = 25M
107security.multipleLogIn = true
108security.loginAttemptNum = 3
109security.authAttemptTTL = 45M