blob: 893d04b387f2c02868bb5d6253f9ccbe3d861f6a [file] [log] [blame]
margaretha1960ea52023-02-28 11:20:15 +01001# Krill settings
2#
margarethacfea1ae2018-01-15 20:27:26 +01003krill.indexDir = ../sample-index
margarethafc9e4072017-08-29 18:34:01 +02004
5krill.index.commit.count = 134217000
6krill.index.commit.log = log/krill.commit.log
7krill.index.commit.auto = 500
8krill.index.relations.max = 100
margaretha1960ea52023-02-28 11:20:15 +01009# Directory path of virtual corpora to cache
margaretha1b320452018-08-02 16:56:25 +020010krill.namedVC = vc
margarethaad1300b2021-12-13 17:36:29 +010011krill.test = true
margarethafc9e4072017-08-29 18:34:01 +020012
margaretha1960ea52023-02-28 11:20:15 +010013# LDAP configuration file
14#
margarethaf9b99b02022-05-25 13:30:04 +020015ldap.config = src/test/resources/test-ldap.conf
margaretha56e8e552017-12-05 16:31:21 +010016
margaretha1960ea52023-02-28 11:20:15 +010017# Kustvakt versions
18#
margarethaee0cbfe2018-08-28 17:47:14 +020019# multiple versions separated by space
margaretha3d55b002019-03-19 12:00:44 +010020current.api.version = v1.0
margarethaee0cbfe2018-08-28 17:47:14 +020021supported.api.version = v0.1 v1.0
22
margaretha1960ea52023-02-28 11:20:15 +010023# Server
24#
margaretha56e8e552017-12-05 16:31:21 +010025server.port=8089
26server.host=localhost
27
margaretha1960ea52023-02-28 11:20:15 +010028# Mail settings
29#
margarethaa86b1412018-02-21 20:40:35 +010030mail.enabled = false
31mail.receiver = test@localhost
32mail.sender = noreply@ids-mannheim.de
margaretha7d0165c2018-02-26 15:31:37 +010033mail.address.retrieval = test
margarethaa86b1412018-02-21 20:40:35 +010034
margaretha1960ea52023-02-28 11:20:15 +010035# Mail.templates
36#
margarethaa86b1412018-02-21 20:40:35 +010037template.group.invitation = notification.vm
38
margaretha1960ea52023-02-28 11:20:15 +010039# Default foundries for specific layers (optional)
40#
margaretha4fa4b062019-01-28 19:43:30 +010041default.foundry.partOfSpeech = tt
42default.foundry.lemma = tt
43default.foundry.orthography = opennlp
44default.foundry.dependency = malt
45default.foundry.constituent = corenlp
46default.foundry.morphology = marmot
margaretha47a72a82019-07-03 16:00:54 +020047default.foundry.surface = base
margarethafc9e4072017-08-29 18:34:01 +020048
margaretha1960ea52023-02-28 11:20:15 +010049# Delete configuration (default hard)
50#
margaretha2c019fa2018-02-01 19:50:51 +010051# delete.auto.group = hard
52delete.group = soft
53delete.group.member = soft
54
margaretha9e73c0e2023-05-05 16:51:49 +020055# Virtual corpus and queries
56max.user.persistent.queries = 5
57
margaretha1960ea52023-02-28 11:20:15 +010058# Availability regex only support |
59# It should be removed/commented when the data doesn't contain availability field.
60#
margarethac38c8562017-11-21 19:02:08 +010061availability.regex.free = CC-BY.*
margaretha351f7692019-02-06 19:36:52 +010062availability.regex.public = ACA.*|QAO-NC
margarethac38c8562017-11-21 19:02:08 +010063availability.regex.all = QAO.*
margarethafc9e4072017-08-29 18:34:01 +020064
margarethafc9e4072017-08-29 18:34:01 +020065
margaretha1960ea52023-02-28 11:20:15 +010066# 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#
margaretha9c78e1a2018-06-27 14:12:35 +020081oauth2.password.authentication = TEST
82oauth2.native.client.host = korap.ids-mannheim.de
margarethabe4c5c92018-05-03 18:55:49 +020083oauth2.max.attempts = 2
margaretha064eb6f2018-07-10 18:33:01 +020084# expiry in seconds (S), minutes (M), hours (H), days (D)
margaretha85273f12019-02-04 18:13:17 +010085oauth2.access.token.expiry = 3M
margaretha064eb6f2018-07-10 18:33:01 +020086oauth2.refresh.token.expiry = 90D
87oauth2.authorization.code.expiry = 10M
margarethabe4c5c92018-05-03 18:55:49 +020088# -- scopes separated by space
margaretha885404d2021-06-11 18:34:33 +020089oauth2.default.scopes = search match_info
margaretha9c78e1a2018-06-27 14:12:35 +020090oauth2.client.credentials.scopes = client_info
91
margaretha3181b8d2022-05-31 11:51:47 +020092oauth2.initial.super.client=true
93
margaretha1960ea52023-02-28 11:20:15 +010094# OpenId
95# multiple values are separated by space
margaretha9c78e1a2018-06-27 14:12:35 +020096openid.grant.types = authorization_code
97openid.response.types = code
98openid.response.modes = query
99openid.client.auth.methods = client_secret_basic client_secret_post
100openid.token.signing.algorithms = RS256
101openid.subject.types = public
102openid.display.types = page
margarethaa2ce63d2018-06-28 10:11:43 +0200103openid.supported.scopes = openid email auth_time
margaretha9c78e1a2018-06-27 14:12:35 +0200104openid.support.claim.param = false
105openid.claim.types = normal
106openid.supported.claims = iss sub aud exp iat
107openid.ui.locales = en
108#openid.privacy.policy =
109#openid.term.of.service =
110openid.service.doc = https://github.com/KorAP/Kustvakt/wiki
margaretha6374f722018-04-17 18:45:57 +0200111
margaretha1960ea52023-02-28 11:20:15 +0100112# JWK
113# must be set for openid
margaretha19295962018-06-26 16:00:47 +0200114rsa.private = kustvakt_rsa.key
115rsa.public = kustvakt_rsa_public.key
116rsa.key.id = 74caa3a9-217c-49e6-94e9-2368fdd02c35
117
margaretha1960ea52023-02-28 11:20:15 +0100118# see SecureRandom Number Generation Algorithms
119# optional
margaretha33fa3d92018-07-26 13:50:17 +0200120security.secure.random.algorithm=SHA1PRNG
121
margaretha1960ea52023-02-28 11:20:15 +0100122# see MessageDigest Algorithms
123# default MD5
margaretha33fa3d92018-07-26 13:50:17 +0200124security.md.algoritm = SHA-256
125
margaretha1960ea52023-02-28 11:20:15 +0100126# secure hash support: BCRYPT
margaretha33fa3d92018-07-26 13:50:17 +0200127security.secure.hash.algorithm=BCRYPT
margaretha2618beb2020-01-24 14:12:28 +0100128security.encryption.loadFactor = 10
margarethafc9e4072017-08-29 18:34:01 +0200129
margaretha1960ea52023-02-28 11:20:15 +0100130# DEPRECATED
131# JWT
margaretha2618beb2020-01-24 14:12:28 +0100132security.jwt.issuer=https://korap.ids-mannheim.de
133security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits
134
margaretha1960ea52023-02-28 11:20:15 +0100135# token expiration time
margaretha2618beb2020-01-24 14:12:28 +0100136security.longTokenTTL = 1D
137security.tokenTTL = 2S
138security.shortTokenTTL = 1S
139
140# Session authentication
margarethafc9e4072017-08-29 18:34:01 +0200141security.idleTimeoutDuration = 25M
142security.multipleLogIn = true
143security.loginAttemptNum = 3
144security.authAttemptTTL = 45M