| 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 | 116307d | 2025-07-23 09:18:32 +0200 | [diff] [blame] | 23 | current.api.version = v1.1 | 
|  | 24 | supported.api.versions = v1.0, v1.1 | 
| 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 | ca9a324 | 2025-06-24 09:11:50 +0200 | [diff] [blame] | 31 | # Pipe (optional) | 
| margaretha | d0f3651 | 2025-07-04 11:06:10 +0200 | [diff] [blame] | 32 | # pipe.host=https://korap.ids-mannheim.de | 
| margaretha | ca9a324 | 2025-06-24 09:11:50 +0200 | [diff] [blame] | 33 | # LOCALHOST ONLY FOR TESTING | 
|  | 34 | pipe.host=http://localhost | 
|  | 35 |  | 
| margaretha | e6ebfbc | 2024-10-07 08:39:42 +0200 | [diff] [blame] | 36 | ## Cache | 
|  | 37 | cache.total.results.enabled = true | 
|  | 38 |  | 
| margaretha | fbfe287 | 2024-01-04 23:29:28 +0100 | [diff] [blame] | 39 | # Default foundries for specific layers (optional) | 
|  | 40 | # | 
|  | 41 | default.foundry.partOfSpeech = tt | 
|  | 42 | default.foundry.lemma = tt | 
|  | 43 | default.foundry.orthography = opennlp | 
|  | 44 | default.foundry.dependency = malt | 
|  | 45 | default.foundry.constituent = corenlp | 
|  | 46 | default.foundry.morphology = marmot | 
|  | 47 | default.foundry.surface = base | 
|  | 48 |  | 
| margaretha | fbfe287 | 2024-01-04 23:29:28 +0100 | [diff] [blame] | 49 | # Virtual corpus and queries | 
|  | 50 | max.user.persistent.queries = 5 | 
| margaretha | d0f4af8 | 2024-11-19 12:13:24 +0100 | [diff] [blame] | 51 | max.token.context.size = 40 | 
| margaretha | fbfe287 | 2024-01-04 23:29:28 +0100 | [diff] [blame] | 52 |  | 
|  | 53 | # Availability regex only support | | 
|  | 54 | # It should be removed/commented when the data doesn't contain availability field. | 
|  | 55 | # | 
| Marc Kupietz | e4528ee | 2024-07-04 16:28:37 +0200 | [diff] [blame] | 56 | availability.regex.free = CC.* | 
| margaretha | fbfe287 | 2024-01-04 23:29:28 +0100 | [diff] [blame] | 57 | availability.regex.public = ACA.*|QAO-NC | 
| margaretha | 82c75c2 | 2024-12-11 09:36:50 +0100 | [diff] [blame] | 58 | # The regex should be specific and make the access distinguishable | 
|  | 59 | # availability.regex.all = QAO.* | 
|  | 60 | availability.regex.all = QAO-NC-LOC:ids.* | 
| margaretha | fbfe287 | 2024-01-04 23:29:28 +0100 | [diff] [blame] | 61 |  | 
|  | 62 |  | 
| margaretha | fbfe287 | 2024-01-04 23:29:28 +0100 | [diff] [blame] | 63 | # options referring to the security module! | 
|  | 64 |  | 
|  | 65 | # OAuth | 
|  | 66 | # (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible | 
|  | 67 | # oauth.password.authentication values) | 
|  | 68 | # | 
|  | 69 | oauth2.password.authentication = TEST | 
|  | 70 | oauth2.native.client.host = korap.ids-mannheim.de | 
|  | 71 | oauth2.max.attempts = 2 | 
|  | 72 | # expiry in seconds (S), minutes (M), hours (H), days (D) | 
|  | 73 | oauth2.access.token.expiry = 3M | 
|  | 74 | oauth2.refresh.token.expiry = 90D | 
|  | 75 | oauth2.authorization.code.expiry = 10M | 
|  | 76 | # -- scopes separated by space | 
|  | 77 | oauth2.default.scopes = search match_info | 
|  | 78 | oauth2.client.credentials.scopes = client_info | 
|  | 79 |  | 
|  | 80 | oauth2.initial.super.client=true | 
|  | 81 |  | 
|  | 82 |  | 
|  | 83 | # see SecureRandom Number Generation Algorithms | 
|  | 84 | # optional | 
|  | 85 | security.secure.random.algorithm=SHA1PRNG | 
|  | 86 |  | 
|  | 87 | # see MessageDigest Algorithms | 
|  | 88 | # default MD5 | 
|  | 89 | security.md.algoritm = SHA-256 | 
|  | 90 |  | 
|  | 91 | # secure hash support: BCRYPT | 
|  | 92 | security.secure.hash.algorithm=BCRYPT | 
|  | 93 | security.encryption.loadFactor = 10 | 
|  | 94 |  | 
|  | 95 | # DEPRECATED | 
|  | 96 | # JWT | 
|  | 97 | security.jwt.issuer=https://korap.ids-mannheim.de | 
|  | 98 | security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits | 
|  | 99 |  | 
|  | 100 | # token expiration time | 
|  | 101 | security.longTokenTTL = 1D | 
|  | 102 | security.tokenTTL = 2S | 
|  | 103 | security.shortTokenTTL = 1S | 
|  | 104 |  | 
|  | 105 | # Session authentication | 
|  | 106 | security.idleTimeoutDuration = 25M | 
|  | 107 | security.multipleLogIn = true | 
|  | 108 | security.loginAttemptNum = 3 | 
|  | 109 | security.authAttemptTTL = 45M |