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