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