blob: 430ad5f2d6486520050de43ec153bd4382130587 [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
margaretha1960ea52023-02-28 11:20:15 +010055# Availability regex only support |
56# It should be removed/commented when the data doesn't contain availability field.
57#
margarethac38c8562017-11-21 19:02:08 +010058availability.regex.free = CC-BY.*
margaretha351f7692019-02-06 19:36:52 +010059availability.regex.public = ACA.*|QAO-NC
margarethac38c8562017-11-21 19:02:08 +010060availability.regex.all = QAO.*
margarethafc9e4072017-08-29 18:34:01 +020061
margarethafc9e4072017-08-29 18:34:01 +020062
margaretha1960ea52023-02-28 11:20:15 +010063# Define resource filters for search and match info API
64# AuthenticationFilter activates authentication using OAuth2 tokens
65# DemoUserFilter allows access to API without login
66#
67# Default values: AuthenticationFilter,DemoUserFilter
68#
69search.resource.filters=AuthenticationFilter,DemoUserFilter
70
71
72# options referring to the security module!
73
74# OAuth
75# (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible
76# oauth.password.authentication values)
77#
margaretha9c78e1a2018-06-27 14:12:35 +020078oauth2.password.authentication = TEST
79oauth2.native.client.host = korap.ids-mannheim.de
margarethabe4c5c92018-05-03 18:55:49 +020080oauth2.max.attempts = 2
margaretha064eb6f2018-07-10 18:33:01 +020081# expiry in seconds (S), minutes (M), hours (H), days (D)
margaretha85273f12019-02-04 18:13:17 +010082oauth2.access.token.expiry = 3M
margaretha064eb6f2018-07-10 18:33:01 +020083oauth2.refresh.token.expiry = 90D
84oauth2.authorization.code.expiry = 10M
margarethabe4c5c92018-05-03 18:55:49 +020085# -- scopes separated by space
margaretha885404d2021-06-11 18:34:33 +020086oauth2.default.scopes = search match_info
margaretha9c78e1a2018-06-27 14:12:35 +020087oauth2.client.credentials.scopes = client_info
88
margaretha3181b8d2022-05-31 11:51:47 +020089oauth2.initial.super.client=true
90
margaretha1960ea52023-02-28 11:20:15 +010091# OpenId
92# multiple values are separated by space
margaretha9c78e1a2018-06-27 14:12:35 +020093openid.grant.types = authorization_code
94openid.response.types = code
95openid.response.modes = query
96openid.client.auth.methods = client_secret_basic client_secret_post
97openid.token.signing.algorithms = RS256
98openid.subject.types = public
99openid.display.types = page
margarethaa2ce63d2018-06-28 10:11:43 +0200100openid.supported.scopes = openid email auth_time
margaretha9c78e1a2018-06-27 14:12:35 +0200101openid.support.claim.param = false
102openid.claim.types = normal
103openid.supported.claims = iss sub aud exp iat
104openid.ui.locales = en
105#openid.privacy.policy =
106#openid.term.of.service =
107openid.service.doc = https://github.com/KorAP/Kustvakt/wiki
margaretha6374f722018-04-17 18:45:57 +0200108
margaretha1960ea52023-02-28 11:20:15 +0100109# JWK
110# must be set for openid
margaretha19295962018-06-26 16:00:47 +0200111rsa.private = kustvakt_rsa.key
112rsa.public = kustvakt_rsa_public.key
113rsa.key.id = 74caa3a9-217c-49e6-94e9-2368fdd02c35
114
margaretha1960ea52023-02-28 11:20:15 +0100115# see SecureRandom Number Generation Algorithms
116# optional
margaretha33fa3d92018-07-26 13:50:17 +0200117security.secure.random.algorithm=SHA1PRNG
118
margaretha1960ea52023-02-28 11:20:15 +0100119# see MessageDigest Algorithms
120# default MD5
margaretha33fa3d92018-07-26 13:50:17 +0200121security.md.algoritm = SHA-256
122
margaretha1960ea52023-02-28 11:20:15 +0100123# secure hash support: BCRYPT
margaretha33fa3d92018-07-26 13:50:17 +0200124security.secure.hash.algorithm=BCRYPT
margaretha2618beb2020-01-24 14:12:28 +0100125security.encryption.loadFactor = 10
margarethafc9e4072017-08-29 18:34:01 +0200126
margaretha1960ea52023-02-28 11:20:15 +0100127# DEPRECATED
128# JWT
margaretha2618beb2020-01-24 14:12:28 +0100129security.jwt.issuer=https://korap.ids-mannheim.de
130security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits
131
margaretha1960ea52023-02-28 11:20:15 +0100132# token expiration time
margaretha2618beb2020-01-24 14:12:28 +0100133security.longTokenTTL = 1D
134security.tokenTTL = 2S
135security.shortTokenTTL = 1S
136
137# Session authentication
margarethafc9e4072017-08-29 18:34:01 +0200138security.idleTimeoutDuration = 25M
139security.multipleLogIn = true
140security.loginAttemptNum = 3
141security.authAttemptTTL = 45M