application.yml 4.61 KB
Newer Older
1
paths:
2
  main: /data/_srv/search_boot
3
4
5
6
7
#  datamodels: ${paths.main}/datamodels
#  mappings: ${paths.main}/mappings
#  grammars: ${paths.main}/grammars
#  models: ${paths.main}/models
#  config: ${paths.main}/config
8
  data: ${paths.main}/data
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#  crawls: ${paths.data}/crawls
#  pictures: ${paths.data}/images
#  downloads: ${paths.data}/downloads
#  backups: ${paths.data}/backups
#  parseErrors: ${paths.data}/parseErrors
#  mapping_logs: ${paths.data}/log/mapping

#images:
#  width: 1000
#  height: 1000
#  thumbnails:
#    width: 150
#    height: 150

#es:
#  hostname: localhost
#  port: 9200
#  useSSL: false
#  username: 
#  password: 

30
31
32
33
34
35
36
37
log:
  dir: /tmp
#  pattern: "%-4relative [%thread] %-5level %logger{35}[%line]- %msg%n"
  indexing:
    baseDir: /tmp/indexing_logs
  
  

38
39
40
41
42
43
44
45
46
47
48
49
indexing:
  index_name_prefix: gs_
  index_config_file: index_config.json
  
search:
  log_all_queries: false

datamodels: 
  integration: 5eb11e106117b10b7b6c7c11
  indexing: 5a27ab9b0246440d479c6c46
  presentation: 5b9004394c7b0405ccf90b00
  metadata: 5cd3f505dd960f585e960f63
50
  crawling: 60812e54667bd50488d2b237
51
52
53
54
55
56
57
58
59
60
61
62
#  modelsWithMessageCodes:
#    - 598f06e706bffc03a8e44f82
#    - 598f06e706bffc03a8e44f83
#  modelsMessageCodePrefix: ~de.mww

# many default options missing here... 
api:
  colreg:
    base_url: https://teaching.clariah.de/colreg-ui/
  dme:
    base_url: https://teaching.clariah.de/dme/

63
64
65
66
crawling:
  max_threads_per_service_type: 6
  api_access_politeness_span_ms: 200

67

68
69
localization:
  defaultLocale: de
70
  debug: true
71
72
73
74


theme: tutorial-finder-theme

75
76
########## from colreg ############

77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Invalid now
#debug:
#  messages: false



#images:
#  width: 1000
#  height: 1000
#  thumbnails:
#    width: 150
#    height: 150

mongo:
  host: 127.0.0.1
  port: 27017
93
  database: search_boot
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
  


#contextPath: /contextpath
#baseUrl: http://localhost:8080${contextPath:/}
#baseUrl: https://externally.visible.example.com${contextPath:/}

spring:
  mvc:
    view:
      prefix: /WEB-INF/views/
      suffix: .jsp

#logging:
#  level:
#    web: DEBUG

auth:
  #baseUrl: ${baseUrl}
  #defaultLoginUrl: ${auth.baseUrl}
  #defaultLogoutUrl: ${auth.baseUrl}
  salt: Qmwp4CO7LDkOUDouAcCcUqd9ZGNbRG5Jyr5lpntOuB9
  permissionHierarchy: ROLE_ADMINISTRATOR > ROLE_CONTRIBUTOR > ROLE_USER
  permissionDefinitions:
    - permissionSet: ROLE_ADMINISTRATOR
      level: 100
      roleMappings: 
        local: ["application_admin"]
        saml: ["generic-search-admins"]       
    - permissionSet: ROLE_CONTRIBUTOR
      level: 50
      roleMappings:
        local: ["application_contributor"]
        saml: ["generic-search-contributors"]
    - permissionSet: ROLE_USER
      level: 10
      roleMappings:
        local: ["application_user"]
        saml: ["application_user"]
  local:
    enabled: true
    authorizerName: local
    # Same password for each user: 1234
    users:
138
139
140
      - username: 'tgradl'
        passhash: '$2a$10$EeajSQQUepa7H7.g4xQCaeO.hjUwh0yzYCMrfOkWCZGe1IiWaexa6'
        roles: ["application_admin"]
141
142
143
144
145
146
147
148
      - username: 'admin'
        passhash: '$2y$10$nmTcpRxs.RFUstkJJms6U.AW61Jmr64s9VNQLuhpU8gYrgzCapwka'
        roles: ["application_admin"]
      - username: 'contributor'
        passhash: '$2y$10$nmTcpRxs.RFUstkJJms6U.AW61Jmr64s9VNQLuhpU8gYrgzCapwka'
        roles: ["application_contributor"]
      - username: 'user'
        passhash: '$2y$10$nmTcpRxs.RFUstkJJms6U.AW61Jmr64s9VNQLuhpU8gYrgzCapwka'
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
        roles: ["application_user"]
  saml:
    enabled: true
    keystore:
      path: ${paths.main}/teststore.jks
      pass: testpass
      alias: test
      aliaspass: testpass
    metadata:
      url: https://idp.winseda.de/simplesaml/saml2/idp/metadata.php
    sp:
      metadataResource: ${paths.main}/sp_metadata.xml
      attributesIncompleteRedirectUrl: "https://selfhelp.winseda.de/"
      attributeGroups:
        - check: AND
          attributes:
            - friendlyName: eduPersonPrincipalName
              mappedAttribute: id
              name: urn:oid:1.3.6.1.4.1.5923.1.1.1.6
              nameFormat: urn:oasis:names:tc:SAML:2.0:attrname-format:uri
        - check: OPTIONAL
          attributes:
            - friendlyName: mail
              name: urn:oid:0.9.2342.19200300.100.1.3
              nameFormat: urn:oasis:names:tc:SAML:2.0:attrname-format:uri
            - friendlyName: displayName
              mappedAttribute: username
              name: urn:oid:2.16.840.1.113730.3.1.241
              nameFormat: urn:oasis:names:tc:SAML:2.0:attrname-format:uri
            - friendlyName: isMemberOf
              mappedAttribute: externalRoles
              name: urn:oid:1.3.6.1.4.1.5923.1.5.1.1
              nameFormat: urn:oasis:names:tc:SAML:2.0:attrname-format:uri