blob: 03badfb479760be27271b2a1c2ffc5d26340362a [file] [log] [blame]
margarethafc9e4072017-08-29 18:34:01 +02001## index dir
margarethacfea1ae2018-01-15 20:27:26 +01002krill.indexDir = ../sample-index
margarethafc9e4072017-08-29 18:34:01 +02003
4krill.index.commit.count = 134217000
5krill.index.commit.log = log/krill.commit.log
6krill.index.commit.auto = 500
7krill.index.relations.max = 100
margaretha1b320452018-08-02 16:56:25 +02008## Directory path of virtual corpora to cache
9krill.namedVC = vc
margarethafc9e4072017-08-29 18:34:01 +020010
margaretha56e8e552017-12-05 16:31:21 +010011#LDAP
12ldap.config = file-path-to-ldap-config
13
14# Kustvakt
margarethaee0cbfe2018-08-28 17:47:14 +020015# multiple versions separated by space
margaretha3d55b002019-03-19 12:00:44 +010016current.api.version = v1.0
margarethaee0cbfe2018-08-28 17:47:14 +020017supported.api.version = v0.1 v1.0
18
margaretha56e8e552017-12-05 16:31:21 +010019## server
20server.port=8089
21server.host=localhost
22
margarethaa86b1412018-02-21 20:40:35 +010023## mail settings
24mail.enabled = false
25mail.receiver = test@localhost
26mail.sender = noreply@ids-mannheim.de
margaretha7d0165c2018-02-26 15:31:37 +010027mail.address.retrieval = test
margarethaa86b1412018-02-21 20:40:35 +010028
29## mail.templates
30template.group.invitation = notification.vm
31
margaretha4fa4b062019-01-28 19:43:30 +010032## default foundries for specific layers
33default.foundry.partOfSpeech = tt
34default.foundry.lemma = tt
35default.foundry.orthography = opennlp
36default.foundry.dependency = malt
37default.foundry.constituent = corenlp
38default.foundry.morphology = marmot
margaretha47a72a82019-07-03 16:00:54 +020039default.foundry.surface = base
margarethafc9e4072017-08-29 18:34:01 +020040
margaretha2c019fa2018-02-01 19:50:51 +010041## delete configuration (default hard)
42# delete.auto.group = hard
43delete.group = soft
44delete.group.member = soft
45
margaretha56e8e552017-12-05 16:31:21 +010046## availability regex
margarethadfecb4b2017-12-12 19:32:30 +010047## only support |
margarethac38c8562017-11-21 19:02:08 +010048availability.regex.free = CC-BY.*
margaretha351f7692019-02-06 19:36:52 +010049availability.regex.public = ACA.*|QAO-NC
margarethac38c8562017-11-21 19:02:08 +010050availability.regex.all = QAO.*
margarethafc9e4072017-08-29 18:34:01 +020051
margarethafc9e4072017-08-29 18:34:01 +020052## options referring to the security module!
53
margaretha9c78e1a2018-06-27 14:12:35 +020054## OAuth
margaretha6374f722018-04-17 18:45:57 +020055### (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible
56### oauth.password.authentication values)
margaretha9c78e1a2018-06-27 14:12:35 +020057oauth2.password.authentication = TEST
58oauth2.native.client.host = korap.ids-mannheim.de
margarethabe4c5c92018-05-03 18:55:49 +020059oauth2.max.attempts = 2
margaretha064eb6f2018-07-10 18:33:01 +020060# expiry in seconds (S), minutes (M), hours (H), days (D)
margaretha85273f12019-02-04 18:13:17 +010061oauth2.access.token.expiry = 3M
margaretha064eb6f2018-07-10 18:33:01 +020062oauth2.refresh.token.expiry = 90D
63oauth2.authorization.code.expiry = 10M
margarethabe4c5c92018-05-03 18:55:49 +020064# -- scopes separated by space
margaretha20f31232018-07-09 17:49:39 +020065oauth2.default.scopes = openid search match_info
margaretha9c78e1a2018-06-27 14:12:35 +020066oauth2.client.credentials.scopes = client_info
67
68## OpenId
69### multiple values are separated by space
70openid.grant.types = authorization_code
71openid.response.types = code
72openid.response.modes = query
73openid.client.auth.methods = client_secret_basic client_secret_post
74openid.token.signing.algorithms = RS256
75openid.subject.types = public
76openid.display.types = page
margarethaa2ce63d2018-06-28 10:11:43 +020077openid.supported.scopes = openid email auth_time
margaretha9c78e1a2018-06-27 14:12:35 +020078openid.support.claim.param = false
79openid.claim.types = normal
80openid.supported.claims = iss sub aud exp iat
81openid.ui.locales = en
82#openid.privacy.policy =
83#openid.term.of.service =
84openid.service.doc = https://github.com/KorAP/Kustvakt/wiki
margaretha6374f722018-04-17 18:45:57 +020085
margaretha19295962018-06-26 16:00:47 +020086## JWK
margaretha07a356a2018-07-11 19:12:21 +020087## must be set for openid
margaretha19295962018-06-26 16:00:47 +020088rsa.private = kustvakt_rsa.key
89rsa.public = kustvakt_rsa_public.key
90rsa.key.id = 74caa3a9-217c-49e6-94e9-2368fdd02c35
91
margaretha33fa3d92018-07-26 13:50:17 +020092## see SecureRandom Number Generation Algorithms
93## default SHA1PRNG
94security.secure.random.algorithm=SHA1PRNG
95
96## see MessageDigest Algorithms
97## default MD5
98security.md.algoritm = SHA-256
99
margaretha2618beb2020-01-24 14:12:28 +0100100### secure hash support: BCRYPT
margaretha33fa3d92018-07-26 13:50:17 +0200101security.secure.hash.algorithm=BCRYPT
margaretha2618beb2020-01-24 14:12:28 +0100102security.encryption.loadFactor = 10
margarethafc9e4072017-08-29 18:34:01 +0200103
margaretha2618beb2020-01-24 14:12:28 +0100104## 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
margarethafc9e4072017-08-29 18:34:01 +0200114security.idleTimeoutDuration = 25M
115security.multipleLogIn = true
116security.loginAttemptNum = 3
117security.authAttemptTTL = 45M
118
margaretha2618beb2020-01-24 14:12:28 +0100119#EM: deprecated and not used
margarethafc9e4072017-08-29 18:34:01 +0200120security.validation.stringLength = 150
121security.validation.emailLength = 50