margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 1 | # Krill settings |
| 2 | # |
margaretha | cfea1ae | 2018-01-15 20:27:26 +0100 | [diff] [blame] | 3 | krill.indexDir = ../sample-index |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 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 |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 9 | # Directory path of virtual corpora to cache |
margaretha | 1b32045 | 2018-08-02 16:56:25 +0200 | [diff] [blame] | 10 | krill.namedVC = vc |
margaretha | ad1300b | 2021-12-13 17:36:29 +0100 | [diff] [blame] | 11 | krill.test = true |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 12 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 13 | # LDAP configuration file |
| 14 | # |
margaretha | f9b99b0 | 2022-05-25 13:30:04 +0200 | [diff] [blame] | 15 | ldap.config = src/test/resources/test-ldap.conf |
margaretha | 56e8e55 | 2017-12-05 16:31:21 +0100 | [diff] [blame] | 16 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 17 | # Kustvakt versions |
| 18 | # |
margaretha | ee0cbfe | 2018-08-28 17:47:14 +0200 | [diff] [blame] | 19 | # multiple versions separated by space |
margaretha | 3d55b00 | 2019-03-19 12:00:44 +0100 | [diff] [blame] | 20 | current.api.version = v1.0 |
margaretha | ee0cbfe | 2018-08-28 17:47:14 +0200 | [diff] [blame] | 21 | supported.api.version = v0.1 v1.0 |
| 22 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 23 | # Server |
| 24 | # |
margaretha | 56e8e55 | 2017-12-05 16:31:21 +0100 | [diff] [blame] | 25 | server.port=8089 |
| 26 | server.host=localhost |
| 27 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 28 | # Mail settings |
| 29 | # |
margaretha | a86b141 | 2018-02-21 20:40:35 +0100 | [diff] [blame] | 30 | mail.enabled = false |
| 31 | mail.receiver = test@localhost |
| 32 | mail.sender = noreply@ids-mannheim.de |
margaretha | 7d0165c | 2018-02-26 15:31:37 +0100 | [diff] [blame] | 33 | mail.address.retrieval = test |
margaretha | a86b141 | 2018-02-21 20:40:35 +0100 | [diff] [blame] | 34 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 35 | # Mail.templates |
| 36 | # |
margaretha | a86b141 | 2018-02-21 20:40:35 +0100 | [diff] [blame] | 37 | template.group.invitation = notification.vm |
| 38 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 39 | # Default foundries for specific layers (optional) |
| 40 | # |
margaretha | 4fa4b06 | 2019-01-28 19:43:30 +0100 | [diff] [blame] | 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 |
margaretha | 47a72a8 | 2019-07-03 16:00:54 +0200 | [diff] [blame] | 47 | default.foundry.surface = base |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 48 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 49 | # Delete configuration (default hard) |
| 50 | # |
margaretha | 2c019fa | 2018-02-01 19:50:51 +0100 | [diff] [blame] | 51 | # delete.auto.group = hard |
| 52 | delete.group = soft |
| 53 | delete.group.member = soft |
| 54 | |
margaretha | 9e73c0e | 2023-05-05 16:51:49 +0200 | [diff] [blame^] | 55 | # Virtual corpus and queries |
| 56 | max.user.persistent.queries = 5 |
| 57 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 58 | # Availability regex only support | |
| 59 | # It should be removed/commented when the data doesn't contain availability field. |
| 60 | # |
margaretha | c38c856 | 2017-11-21 19:02:08 +0100 | [diff] [blame] | 61 | availability.regex.free = CC-BY.* |
margaretha | 351f769 | 2019-02-06 19:36:52 +0100 | [diff] [blame] | 62 | availability.regex.public = ACA.*|QAO-NC |
margaretha | c38c856 | 2017-11-21 19:02:08 +0100 | [diff] [blame] | 63 | availability.regex.all = QAO.* |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 64 | |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 65 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 66 | # 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 | # |
| 72 | search.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 | # |
margaretha | 9c78e1a | 2018-06-27 14:12:35 +0200 | [diff] [blame] | 81 | oauth2.password.authentication = TEST |
| 82 | oauth2.native.client.host = korap.ids-mannheim.de |
margaretha | be4c5c9 | 2018-05-03 18:55:49 +0200 | [diff] [blame] | 83 | oauth2.max.attempts = 2 |
margaretha | 064eb6f | 2018-07-10 18:33:01 +0200 | [diff] [blame] | 84 | # expiry in seconds (S), minutes (M), hours (H), days (D) |
margaretha | 85273f1 | 2019-02-04 18:13:17 +0100 | [diff] [blame] | 85 | oauth2.access.token.expiry = 3M |
margaretha | 064eb6f | 2018-07-10 18:33:01 +0200 | [diff] [blame] | 86 | oauth2.refresh.token.expiry = 90D |
| 87 | oauth2.authorization.code.expiry = 10M |
margaretha | be4c5c9 | 2018-05-03 18:55:49 +0200 | [diff] [blame] | 88 | # -- scopes separated by space |
margaretha | 885404d | 2021-06-11 18:34:33 +0200 | [diff] [blame] | 89 | oauth2.default.scopes = search match_info |
margaretha | 9c78e1a | 2018-06-27 14:12:35 +0200 | [diff] [blame] | 90 | oauth2.client.credentials.scopes = client_info |
| 91 | |
margaretha | 3181b8d | 2022-05-31 11:51:47 +0200 | [diff] [blame] | 92 | oauth2.initial.super.client=true |
| 93 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 94 | # OpenId |
| 95 | # multiple values are separated by space |
margaretha | 9c78e1a | 2018-06-27 14:12:35 +0200 | [diff] [blame] | 96 | openid.grant.types = authorization_code |
| 97 | openid.response.types = code |
| 98 | openid.response.modes = query |
| 99 | openid.client.auth.methods = client_secret_basic client_secret_post |
| 100 | openid.token.signing.algorithms = RS256 |
| 101 | openid.subject.types = public |
| 102 | openid.display.types = page |
margaretha | a2ce63d | 2018-06-28 10:11:43 +0200 | [diff] [blame] | 103 | openid.supported.scopes = openid email auth_time |
margaretha | 9c78e1a | 2018-06-27 14:12:35 +0200 | [diff] [blame] | 104 | openid.support.claim.param = false |
| 105 | openid.claim.types = normal |
| 106 | openid.supported.claims = iss sub aud exp iat |
| 107 | openid.ui.locales = en |
| 108 | #openid.privacy.policy = |
| 109 | #openid.term.of.service = |
| 110 | openid.service.doc = https://github.com/KorAP/Kustvakt/wiki |
margaretha | 6374f72 | 2018-04-17 18:45:57 +0200 | [diff] [blame] | 111 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 112 | # JWK |
| 113 | # must be set for openid |
margaretha | 1929596 | 2018-06-26 16:00:47 +0200 | [diff] [blame] | 114 | rsa.private = kustvakt_rsa.key |
| 115 | rsa.public = kustvakt_rsa_public.key |
| 116 | rsa.key.id = 74caa3a9-217c-49e6-94e9-2368fdd02c35 |
| 117 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 118 | # see SecureRandom Number Generation Algorithms |
| 119 | # optional |
margaretha | 33fa3d9 | 2018-07-26 13:50:17 +0200 | [diff] [blame] | 120 | security.secure.random.algorithm=SHA1PRNG |
| 121 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 122 | # see MessageDigest Algorithms |
| 123 | # default MD5 |
margaretha | 33fa3d9 | 2018-07-26 13:50:17 +0200 | [diff] [blame] | 124 | security.md.algoritm = SHA-256 |
| 125 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 126 | # secure hash support: BCRYPT |
margaretha | 33fa3d9 | 2018-07-26 13:50:17 +0200 | [diff] [blame] | 127 | security.secure.hash.algorithm=BCRYPT |
margaretha | 2618beb | 2020-01-24 14:12:28 +0100 | [diff] [blame] | 128 | security.encryption.loadFactor = 10 |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 129 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 130 | # DEPRECATED |
| 131 | # JWT |
margaretha | 2618beb | 2020-01-24 14:12:28 +0100 | [diff] [blame] | 132 | security.jwt.issuer=https://korap.ids-mannheim.de |
| 133 | security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits |
| 134 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 135 | # token expiration time |
margaretha | 2618beb | 2020-01-24 14:12:28 +0100 | [diff] [blame] | 136 | security.longTokenTTL = 1D |
| 137 | security.tokenTTL = 2S |
| 138 | security.shortTokenTTL = 1S |
| 139 | |
| 140 | # Session authentication |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 141 | security.idleTimeoutDuration = 25M |
| 142 | security.multipleLogIn = true |
| 143 | security.loginAttemptNum = 3 |
| 144 | security.authAttemptTTL = 45M |