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