DE EN EN (Google)

Example configuration of easydb’s server

In this example we will configure following options:

easydb server:

Please keep following rules for workers in mind:

Default set of workers:

exporter:
  num-workers: 1
frontend:
  num-services: 1
  medium:
    num-services: 3
  fast:
    num-services: 2
upload:
  num-services: 1
indexer:
  num-processes: 1

postgresql:

easydb asset server (eas):

elasticsearch:

plugins:

hotfolder:

docker-hostname

sso:

easydb-server.yml

hostnames:
  server: easydb.example.com:80
  pgsql: postgresql.example.com:5432
  eas: eas.example.com:80
  elasticsearch: elasticsearch.example.com:9200
  fylr: fylr.example.com:4000

pgsql:
  host: postgresql.example.com
  port: 5432
  database: easy5

extension:
  external-user-schema: true

server:
  external_url: https://easydb.example.com
  enable_post_settings: true
  api:
    settings:
      restart: true
      purgedata: true
      purgeall: false
      reindex: true
  mailer:
    enabled: true
  exporter:
    num_workers: 1
  imexporter:
    num_services: 1
    socket: /tmp/easydb/socket/imexporter.sock
  frontend:
    num_services: 1
    socket: /tmp/easydb/socket/frontend.sock
  upload:
    num_services: 1
    socket: /tmp/easydb/socket/upload.sock
  indexer:
    num_processes: 1
  preindexer:
    num_processes: 2

default_client:
  datamodel:
    uid: example-objectstore-uuid
    server: https://objectstore.example.com
    instance: production

eas:
  url: eas.example.com
  instance: easy5

elasticsearch:
  url: elasticsearch.example.com
  default_template:

plugins:
  enabled+:
    - base.custom-data-type-link
    - base.custom-data-type-gnd
    - base.custom-data-type-location
    - base.editor-tagfilter-defaults
    - base.custom-data-type-gazetteer
    - base.connector
    - base.example-plugin

hotfolder:
  upload_batch_size: 100
  upload_batches: true
  urls:
    - type: windows_webdav
      url: \\easydb.example.com@SSL\upload\collection
      separator: \
    - type: webdav_http
      url: https://easydb.example.com/upload/collection
      separator: /

smtp:
  server: mail.example.com
  hostname: easydb.example.com
  from-address: easydb@example.com

sso:
  environment:
    mapping:
      m_login:
        attr: REMOTE_USER
        regex_match: '@.*$'
        regex_replace: ''
    user:
      login: "%(m_login)s"
      displayname: "%(cn)s"
      email: "%(mail)s"
    groups:
      - attr: affiliation
        divider: ';'
  auth_method:
    client:
      login:
        visible: true
        window_open: ""
        show_errors: true

ldap:
  - user:
      protocol: ldaps
      server: ldap.example.com
      basedn: o=programmfabrik,dc=example,dc=com
      filter: '(&(objectClass=posixAccount)(uid=%(Login)s))'
      user: dn=cn=mysearchuser,ou=people,dc=example,dc=com
      password: binduserpassword
    group:
      protocol: ldaps
      server: ldap.example.com
      basedn: o=programmfabrik,dc=example,dc=com
      filter: '(&(memberUid=%(user.uid)s)(objectClass=posixGroup))'
      user: dn=cn=searchonly,ou=people,dc=example,dc=com
      password: binduserpassword
    environment:
      mapping:
        u_login:
          attr: user.uid
          regex_match: '$'
          regex_replace: '@LDAP'
        g_ldap_prefixed:
          attr: group.cn
          regex_match: '^'
          regex_replace: 'ldap.'
      user:
        login: '%(u_login)s'
        displayname: '%(user.givenName)s %(user.sn)s'
        email: '%(user.mail)s'
      groups:
        - attr: g_ldap_prefixed