application_id:               "openproject"
docker_repository_address:    "https://github.com/opf/openproject-deploy"
database_type:                "postgres"

openproject_plugins_folder:  "{{docker_compose.directories.volumes}}plugins/"

custom_openproject_image:     "custom_openproject"

# The following volume doesn't have a practcical function. It just exist to prevent the creation of unnecessary anonymous volumes
dummy_volume:                 "{{docker_compose.directories.volumes}}dummy_volume"

openproject_rails_settings:
  email_delivery_method:      "smtp"
  smtp_address:               "{{ system_email.host }}"
  smtp_domain:                "{{ system_email.domain }}"
  smtp_user_name:             "{{ users['no-reply'].email }}"
  smtp_password:              "{{ users['no-reply'].mailu_token }}"
  smtp_ssl:                   false

openproject_filters:
  administrators: >-
    {{ '(memberOf=cn=openproject-admins,' ~ ldap.dn.application_roles ~ ')' 
       if applications[application_id].ldap.filters.administrators else '' }}

  users: >-
    {{ '(memberOf=cn=openproject-users,' ~ ldap.dn.application_roles ~ ')' 
       if applications[application_id].ldap.filters.users else '' }}
