mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-22 14:05:33 +00:00
This update introduces conditional Redis support for Gitea, allowing connection to either a local or centralized Redis instance depending on configuration. Includes resource limits for the Redis service and corresponding environment variables for cache, session, and queue backends. Reference: ChatGPT conversation on centralized vs per-app Redis architecture (2025-10-15). https://chatgpt.com/share/68ef5930-49c8-800f-b6b8-069e6fefda01
35 lines
1.7 KiB
YAML
35 lines
1.7 KiB
YAML
# General
|
|
application_id: "web-app-gitea"
|
|
database_type: "mariadb"
|
|
|
|
# Docker
|
|
container_port: "{{ applications | get_app_conf(application_id, 'docker.services.gitea.port') }}"
|
|
docker_compose_flush_handlers: true
|
|
|
|
# Gitea
|
|
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') }}"
|
|
GITEA_IMAGE: "{{ applications | get_app_conf(application_id, 'docker.services.gitea.image') }}"
|
|
GITEA_CONTAINER: "{{ applications | get_app_conf(application_id, 'docker.services.gitea.name') }}"
|
|
GITEA_VOLUME: "{{ applications | get_app_conf(application_id, 'docker.volumes.data') }}"
|
|
GITEA_USER: "git"
|
|
GITEA_CONFIG: "/data/gitea/conf/app.ini"
|
|
|
|
## Redis
|
|
GITEA_REDIS_ENABLED: "{{ applications | get_app_conf(application_id, 'docker.services.redis.enabled') }}"
|
|
GITEA_REDIS_ADDRESS: "redis:6379"
|