application_id:       "web-app-gitea"
database_type:        "mariadb"
gitea_ldap_auth_args:
  - '--name "LDAP ({{ PRIMARY_DOMAIN }})"'
  - '--host "{{ ldap.server.domain }}"'
  - '--port {{ ldap.server.port }}'
  - '--security-protocol "{{ ldap.server.security | trim or "unencrypted" }}"'
  - '--bind-dn "{{ ldap.dn.administrator.data }}"'
  - '--bind-password "{{ ldap.bind_credential }}"'
  - '--user-search-base "{{ ldap.dn.ou.users }}"'
  - '--user-filter  "(&(objectClass=inetOrgPerson)(uid=%s))"'
  - '--username-attribute "{{ ldap.user.attributes.id }}"'
  - '--firstname-attribute "{{ ldap.user.attributes.firstname }}"'
  - '--surname-attribute "{{ ldap.user.attributes.surname }}"'
  - '--email-attribute "{{ ldap.user.attributes.mail }}"'
  - '--public-ssh-key-attribute "{{ ldap.user.attributes.ssh_public_key }}"'
  - '--synchronize-users'
gitea_version:    "{{ applications | get_app_conf(application_id, 'docker.services.gitea.version', True) }}"
gitea_image:      "{{ applications | get_app_conf(application_id, 'docker.services.gitea.image', True) }}"
gitea_container:  "{{ applications | get_app_conf(application_id, 'docker.services.gitea.name', True) }}"
gitea_volume:     "{{ applications | get_app_conf(application_id, 'docker.volumes.data', True) }}"
gitea_user:       "git"
gitea_config:     "/data/gitea/conf/app.ini"

container_port:  "{{ applications | get_app_conf(application_id, 'docker.services.gitea.port', True) }}"

docker_compose_flush_handlers:          true