margaretha | 56e8e55 | 2017-12-05 16:31:21 +0100 | [diff] [blame] | 1 | #Krill |
margaretha | f68daa6 | 2017-09-21 02:11:24 +0200 | [diff] [blame] | 2 | krill.indexDir= ../sample-index |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 3 | |
| 4 | krill.index.commit.count = 134217000 |
| 5 | krill.index.commit.log = log/krill.commit.log |
| 6 | krill.index.commit.auto = 500 |
| 7 | krill.index.relations.max = 100 |
margaretha | d716312 | 2022-04-11 09:42:41 +0200 | [diff] [blame] | 8 | # Directory path of virtual corpora to cache |
margaretha | 51e5e3f | 2018-10-17 15:10:03 +0200 | [diff] [blame] | 9 | #krill.namedVC = vc |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 10 | |
margaretha | d716312 | 2022-04-11 09:42:41 +0200 | [diff] [blame] | 11 | # LDAP |
Marc Kupietz | 9c22bbd | 2022-05-08 11:17:26 +0200 | [diff] [blame] | 12 | ldap.config = src/main/resources/embedded-ldap-example.conf |
margaretha | 56e8e55 | 2017-12-05 16:31:21 +0100 | [diff] [blame] | 13 | |
| 14 | # Kustvakt |
Marc Kupietz | 805afde | 2020-03-24 09:08:50 +0100 | [diff] [blame] | 15 | api.welcome.message = Welcome to KorAP API! |
margaretha | 2ea9a1e | 2019-01-11 16:37:21 +0100 | [diff] [blame] | 16 | current.api.version = v1.0 |
margaretha | ee0cbfe | 2018-08-28 17:47:14 +0200 | [diff] [blame] | 17 | # multiple versions separated by space |
margaretha | 2ea9a1e | 2019-01-11 16:37:21 +0100 | [diff] [blame] | 18 | # supported.api.version = v1.0 |
margaretha | ee0cbfe | 2018-08-28 17:47:14 +0200 | [diff] [blame] | 19 | |
margaretha | d716312 | 2022-04-11 09:42:41 +0200 | [diff] [blame] | 20 | # server |
margaretha | aecee1b | 2018-02-20 14:44:21 +0100 | [diff] [blame] | 21 | server.port=8089 |
| 22 | server.host=localhost |
| 23 | |
margaretha | d716312 | 2022-04-11 09:42:41 +0200 | [diff] [blame] | 24 | # mail settings |
margaretha | 58e1863 | 2018-02-15 13:04:42 +0100 | [diff] [blame] | 25 | mail.enabled = false |
margaretha | a86b141 | 2018-02-21 20:40:35 +0100 | [diff] [blame] | 26 | mail.receiver = test@localhost |
margaretha | aecee1b | 2018-02-20 14:44:21 +0100 | [diff] [blame] | 27 | mail.sender = noreply@ids-mannheim.de |
margaretha | 7d0165c | 2018-02-26 15:31:37 +0100 | [diff] [blame] | 28 | mail.address.retrieval = test |
margaretha | 58e1863 | 2018-02-15 13:04:42 +0100 | [diff] [blame] | 29 | |
margaretha | d716312 | 2022-04-11 09:42:41 +0200 | [diff] [blame] | 30 | # mail.templates |
margaretha | a86b141 | 2018-02-21 20:40:35 +0100 | [diff] [blame] | 31 | template.group.invitation = notification.vm |
| 32 | |
margaretha | d716312 | 2022-04-11 09:42:41 +0200 | [diff] [blame] | 33 | # default foundries for specific layers |
margaretha | 4fa4b06 | 2019-01-28 19:43:30 +0100 | [diff] [blame] | 34 | default.foundry.partOfSpeech = tt |
| 35 | default.foundry.lemma = tt |
| 36 | default.foundry.orthography = opennlp |
| 37 | default.foundry.dependency = malt |
| 38 | default.foundry.constituent = corenlp |
| 39 | default.foundry.morphology = marmot |
margaretha | 798e8bd | 2019-02-06 15:48:58 +0100 | [diff] [blame] | 40 | default.foundry.surface = base |
margaretha | c38c856 | 2017-11-21 19:02:08 +0100 | [diff] [blame] | 41 | |
margaretha | d716312 | 2022-04-11 09:42:41 +0200 | [diff] [blame] | 42 | # delete configuration (default hard) |
margaretha | 2c019fa | 2018-02-01 19:50:51 +0100 | [diff] [blame] | 43 | # delete.auto.group = hard |
| 44 | delete.group = soft |
| 45 | delete.group.member = soft |
| 46 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 47 | |
| 48 | # Availability regex only support | |
| 49 | # It should be removed/commented when the data doesn't contain availability field. |
| 50 | # |
margaretha | c38c856 | 2017-11-21 19:02:08 +0100 | [diff] [blame] | 51 | availability.regex.free = CC-BY.* |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 52 | availability.regex.public = ACA.*|QAO-NC |
margaretha | c38c856 | 2017-11-21 19:02:08 +0100 | [diff] [blame] | 53 | availability.regex.all = QAO.* |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 54 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 55 | |
| 56 | # Define resource filters for search and match info API |
| 57 | # AuthenticationFilter activates authentication using OAuth2 tokens |
| 58 | # DemoUserFilter allows access to API without login |
| 59 | # |
| 60 | # Default values: AuthenticationFilter,DemoUserFilter |
| 61 | # |
| 62 | search.resource.filters=AuthenticationFilter,DemoUserFilter |
| 63 | |
| 64 | |
| 65 | |
margaretha | d716312 | 2022-04-11 09:42:41 +0200 | [diff] [blame] | 66 | # options referring to the security module! |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 67 | |
margaretha | d716312 | 2022-04-11 09:42:41 +0200 | [diff] [blame] | 68 | # OAuth |
| 69 | # (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible |
| 70 | # oauth.password.authentication values) |
Marc Kupietz | 1380c1a | 2022-12-04 09:51:50 +0100 | [diff] [blame] | 71 | oauth2.password.authentication = LDAP |
margaretha | d716312 | 2022-04-11 09:42:41 +0200 | [diff] [blame] | 72 | # used to determine native client, currently not used |
| 73 | # oauth2.native.client.host = korap.ids-mannheim.de |
margaretha | 064eb6f | 2018-07-10 18:33:01 +0200 | [diff] [blame] | 74 | oauth2.max.attempts = 1 |
| 75 | # expiry in seconds (S), minutes (M), hours (H), days (D) |
| 76 | oauth2.access.token.expiry = 1D |
| 77 | oauth2.refresh.token.expiry = 90D |
margaretha | d716312 | 2022-04-11 09:42:41 +0200 | [diff] [blame] | 78 | # default 365D |
| 79 | # oauth2.access.token.long.expiry = 365D |
| 80 | # oauth2.refresh.token.long.expiry = 365D |
margaretha | 064eb6f | 2018-07-10 18:33:01 +0200 | [diff] [blame] | 81 | oauth2.authorization.code.expiry = 10M |
margaretha | d716312 | 2022-04-11 09:42:41 +0200 | [diff] [blame] | 82 | # scopes separated by space |
margaretha | 20f3123 | 2018-07-09 17:49:39 +0200 | [diff] [blame] | 83 | oauth2.default.scopes = search match_info |
margaretha | d7cab21 | 2018-07-02 19:01:43 +0200 | [diff] [blame] | 84 | oauth2.client.credentials.scopes = client_info |
margaretha | 6374f72 | 2018-04-17 18:45:57 +0200 | [diff] [blame] | 85 | |
margaretha | 33fa3d9 | 2018-07-26 13:50:17 +0200 | [diff] [blame] | 86 | ## see SecureRandom Number Generation Algorithms |
margaretha | 4bd6125 | 2021-06-11 14:11:31 +0200 | [diff] [blame] | 87 | ## optional |
| 88 | # security.secure.random.algorithm=SHA1PRNG |
margaretha | 33fa3d9 | 2018-07-26 13:50:17 +0200 | [diff] [blame] | 89 | |
| 90 | ## see MessageDigest Algorithms |
| 91 | ## default MD5 |
| 92 | security.md.algoritm = SHA-256 |
| 93 | |
margaretha | 2618beb | 2020-01-24 14:12:28 +0100 | [diff] [blame] | 94 | ### secure hash support: BCRYPT |
margaretha | 33fa3d9 | 2018-07-26 13:50:17 +0200 | [diff] [blame] | 95 | security.secure.hash.algorithm=BCRYPT |
margaretha | 2618beb | 2020-01-24 14:12:28 +0100 | [diff] [blame] | 96 | security.encryption.loadFactor = 10 |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 97 | |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 98 | # DEPRECATED |
margaretha | 2618beb | 2020-01-24 14:12:28 +0100 | [diff] [blame] | 99 | # JWT |
| 100 | security.jwt.issuer=korap.ids-mannheim.de |
| 101 | security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits |
| 102 | |
| 103 | ## token expiration (used in other authentication provider than OAuth2) |
| 104 | security.longTokenTTL=150D |
| 105 | security.tokenTTL=72H |
| 106 | security.shortTokenTTL=45M |
| 107 | |
| 108 | # Session authentication |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 109 | security.idleTimeoutDuration = 25M |
| 110 | security.multipleLogIn = true |
| 111 | security.loginAttemptNum = 3 |
margaretha | 1960ea5 | 2023-02-28 11:20:15 +0100 | [diff] [blame] | 112 | security.authAttemptTTL = 45M |