margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 1 | ## index dir |
margaretha | cfea1ae | 2018-01-15 20:27:26 +0100 | [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 | 1b32045 | 2018-08-02 16:56:25 +0200 | [diff] [blame] | 8 | ## Directory path of virtual corpora to cache |
| 9 | krill.namedVC = vc |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 10 | |
margaretha | 56e8e55 | 2017-12-05 16:31:21 +0100 | [diff] [blame] | 11 | #LDAP |
| 12 | ldap.config = file-path-to-ldap-config |
| 13 | |
| 14 | # Kustvakt |
margaretha | 7926adc | 2018-08-30 13:45:33 +0200 | [diff] [blame] | 15 | |
margaretha | f7abb36 | 2018-09-18 20:09:37 +0200 | [diff] [blame] | 16 | current.api.version = v1.1 |
margaretha | ee0cbfe | 2018-08-28 17:47:14 +0200 | [diff] [blame] | 17 | # multiple versions separated by space |
| 18 | supported.api.version = v0.1 v1.0 |
| 19 | |
margaretha | 56e8e55 | 2017-12-05 16:31:21 +0100 | [diff] [blame] | 20 | ## server |
| 21 | server.port=8089 |
| 22 | server.host=localhost |
| 23 | |
margaretha | a86b141 | 2018-02-21 20:40:35 +0100 | [diff] [blame] | 24 | ## mail settings |
| 25 | mail.enabled = false |
| 26 | mail.receiver = test@localhost |
| 27 | mail.sender = noreply@ids-mannheim.de |
margaretha | 7d0165c | 2018-02-26 15:31:37 +0100 | [diff] [blame] | 28 | mail.address.retrieval = test |
margaretha | a86b141 | 2018-02-21 20:40:35 +0100 | [diff] [blame] | 29 | |
| 30 | ## mail.templates |
| 31 | template.group.invitation = notification.vm |
| 32 | |
margaretha | 56e8e55 | 2017-12-05 16:31:21 +0100 | [diff] [blame] | 33 | ## default layers |
margaretha | 6fca729 | 2018-03-13 13:19:00 +0100 | [diff] [blame] | 34 | default.layer.partOfSpeech = tt |
| 35 | default.layer.lemma = tt |
| 36 | default.layer.orthography = opennlp |
| 37 | default.layer.dependency = mate |
| 38 | default.layer.constituent = corenlp |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 39 | |
margaretha | 2c019fa | 2018-02-01 19:50:51 +0100 | [diff] [blame] | 40 | ## delete configuration (default hard) |
| 41 | # delete.auto.group = hard |
| 42 | delete.group = soft |
| 43 | delete.group.member = soft |
| 44 | |
margaretha | 56e8e55 | 2017-12-05 16:31:21 +0100 | [diff] [blame] | 45 | ## availability regex |
margaretha | dfecb4b | 2017-12-12 19:32:30 +0100 | [diff] [blame] | 46 | ## only support | |
margaretha | c38c856 | 2017-11-21 19:02:08 +0100 | [diff] [blame] | 47 | availability.regex.free = CC-BY.* |
margaretha | ad618d2 | 2017-12-11 19:58:49 +0100 | [diff] [blame] | 48 | availability.regex.public = ACA.* | QAO-NC |
margaretha | c38c856 | 2017-11-21 19:02:08 +0100 | [diff] [blame] | 49 | availability.regex.all = QAO.* |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 50 | |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 51 | ## options referring to the security module! |
| 52 | |
margaretha | 9c78e1a | 2018-06-27 14:12:35 +0200 | [diff] [blame] | 53 | ## OAuth |
margaretha | 6374f72 | 2018-04-17 18:45:57 +0200 | [diff] [blame] | 54 | ### (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible |
| 55 | ### oauth.password.authentication values) |
margaretha | 9c78e1a | 2018-06-27 14:12:35 +0200 | [diff] [blame] | 56 | oauth2.password.authentication = TEST |
| 57 | oauth2.native.client.host = korap.ids-mannheim.de |
margaretha | be4c5c9 | 2018-05-03 18:55:49 +0200 | [diff] [blame] | 58 | oauth2.max.attempts = 2 |
margaretha | 064eb6f | 2018-07-10 18:33:01 +0200 | [diff] [blame] | 59 | # expiry in seconds (S), minutes (M), hours (H), days (D) |
| 60 | oauth2.access.token.expiry = 3S |
| 61 | oauth2.refresh.token.expiry = 90D |
| 62 | oauth2.authorization.code.expiry = 10M |
margaretha | be4c5c9 | 2018-05-03 18:55:49 +0200 | [diff] [blame] | 63 | # -- scopes separated by space |
margaretha | 20f3123 | 2018-07-09 17:49:39 +0200 | [diff] [blame] | 64 | oauth2.default.scopes = openid search match_info |
margaretha | 9c78e1a | 2018-06-27 14:12:35 +0200 | [diff] [blame] | 65 | oauth2.client.credentials.scopes = client_info |
| 66 | |
| 67 | ## OpenId |
| 68 | ### multiple values are separated by space |
| 69 | openid.grant.types = authorization_code |
| 70 | openid.response.types = code |
| 71 | openid.response.modes = query |
| 72 | openid.client.auth.methods = client_secret_basic client_secret_post |
| 73 | openid.token.signing.algorithms = RS256 |
| 74 | openid.subject.types = public |
| 75 | openid.display.types = page |
margaretha | a2ce63d | 2018-06-28 10:11:43 +0200 | [diff] [blame] | 76 | openid.supported.scopes = openid email auth_time |
margaretha | 9c78e1a | 2018-06-27 14:12:35 +0200 | [diff] [blame] | 77 | openid.support.claim.param = false |
| 78 | openid.claim.types = normal |
| 79 | openid.supported.claims = iss sub aud exp iat |
| 80 | openid.ui.locales = en |
| 81 | #openid.privacy.policy = |
| 82 | #openid.term.of.service = |
| 83 | openid.service.doc = https://github.com/KorAP/Kustvakt/wiki |
margaretha | 6374f72 | 2018-04-17 18:45:57 +0200 | [diff] [blame] | 84 | |
margaretha | 1929596 | 2018-06-26 16:00:47 +0200 | [diff] [blame] | 85 | ## JWT |
margaretha | 9c78e1a | 2018-06-27 14:12:35 +0200 | [diff] [blame] | 86 | security.jwt.issuer=https://korap.ids-mannheim.de |
margaretha | 6374f72 | 2018-04-17 18:45:57 +0200 | [diff] [blame] | 87 | |
margaretha | 1929596 | 2018-06-26 16:00:47 +0200 | [diff] [blame] | 88 | ## JWK |
margaretha | 07a356a | 2018-07-11 19:12:21 +0200 | [diff] [blame] | 89 | ## must be set for openid |
margaretha | 1929596 | 2018-06-26 16:00:47 +0200 | [diff] [blame] | 90 | rsa.private = kustvakt_rsa.key |
| 91 | rsa.public = kustvakt_rsa_public.key |
| 92 | rsa.key.id = 74caa3a9-217c-49e6-94e9-2368fdd02c35 |
| 93 | |
| 94 | ## token expiration time |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 95 | security.longTokenTTL = 1D |
margaretha | 49cb688 | 2018-07-04 04:19:54 +0200 | [diff] [blame] | 96 | security.tokenTTL = 2S |
| 97 | security.shortTokenTTL = 1S |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 98 | |
margaretha | 33fa3d9 | 2018-07-26 13:50:17 +0200 | [diff] [blame] | 99 | ## see SecureRandom Number Generation Algorithms |
| 100 | ## default SHA1PRNG |
| 101 | security.secure.random.algorithm=SHA1PRNG |
| 102 | |
| 103 | ## see MessageDigest Algorithms |
| 104 | ## default MD5 |
| 105 | security.md.algoritm = SHA-256 |
| 106 | |
| 107 | ### secure hash support: BCRYPT, ESAPICYPHER |
| 108 | security.secure.hash.algorithm=BCRYPT |
margaretha | f18298b | 2017-09-14 22:14:32 +0200 | [diff] [blame] | 109 | security.passcode.salt=salt |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 110 | |
| 111 | security.idleTimeoutDuration = 25M |
| 112 | security.multipleLogIn = true |
| 113 | security.loginAttemptNum = 3 |
| 114 | security.authAttemptTTL = 45M |
| 115 | |
| 116 | security.encryption.loadFactor = 8 |
| 117 | security.validation.stringLength = 150 |
| 118 | security.validation.emailLength = 50 |
margaretha | 33fa3d9 | 2018-07-26 13:50:17 +0200 | [diff] [blame] | 119 | |
margaretha | e4034a8 | 2018-07-02 14:46:59 +0200 | [diff] [blame] | 120 | security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits |
margaretha | fc9e407 | 2017-08-29 18:34:01 +0200 | [diff] [blame] | 121 | |
| 122 | ## applicable: rewrite, foundry, filter, deny |
| 123 | security.rewrite.strategies=filter, foundry, rewrite |