mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-31 15:48:57 +02:00
Summary: - Replace draft with complete README (features, resources, credits). - Remove obsolete Todo.md. - Switch to custom image tag (PRETIX_IMAGE_CUSTOM) and install 'pretix-oidc' in Dockerfile. - Drop unused 'config' volume; keep persistent 'data' only. - Rename docker-compose service from 'application' to 'pretix' and use container_port. - Use standard depends_on include for DB/Redis (dmbs_excl). - Align vars to docker.services.pretix.* (image/version/name); add PRETIX_IMAGE_CUSTOM. Breaking: - Service key changed to 'pretix' under docker.services. - 'config' volume removed from compose. Status: - Pretix role is now fully implemented and production-ready. Reference: - Conversation: https://chatgpt.com/share/68b1cb34-b7dc-800f-8b39-c183124972f2
32 lines
1.8 KiB
YAML
32 lines
1.8 KiB
YAML
# General
|
||
application_id: "web-app-pretix"
|
||
database_type: "postgres"
|
||
container_port: 80
|
||
|
||
# URLs
|
||
PRETIX_URL: "{{ domains | get_url(application_id, WEB_PROTOCOL) }}"
|
||
PRETIX_HOSTNAME: "{{ domains | get_domain(application_id) }}"
|
||
|
||
# OIDC (mirrors GitLab’s pattern)
|
||
PRETIX_OIDC_ENABLED: "{{ applications | get_app_conf(application_id, 'features.oidc') }}"
|
||
PRETIX_OIDC_LABEL: "{{ OIDC.BUTTON_TEXT }}"
|
||
PRETIX_OIDC_CLIENT_ID: "{{ OIDC.CLIENT.ID }}"
|
||
PRETIX_OIDC_CLIENT_SECRET: "{{ OIDC.CLIENT.SECRET }}"
|
||
PRETIX_OIDC_ISSUER: "{{ OIDC.CLIENT.ISSUER_URL }}"
|
||
PRETIX_OIDC_AUTH_URL: "{{ OIDC.CLIENT.AUTHORIZE_URL }}"
|
||
PRETIX_OIDC_TOKEN_URL: "{{ OIDC.CLIENT.TOKEN_URL }}"
|
||
PRETIX_OIDC_USERINFO_URL: "{{ OIDC.CLIENT.USER_INFO_URL }}"
|
||
PRETIX_OIDC_LOGOUT_URL: "{{ OIDC.CLIENT.LOGOUT_URL }}"
|
||
PRETIX_OIDC_JWKS_URL: "{{ OIDC.CLIENT.CERTS }}"
|
||
PRETIX_OIDC_SCOPES: "openid,email,profile"
|
||
# Use Keycloak username claim by default (plugin default is 'sub')
|
||
PRETIX_OIDC_UNIQUE_ATTRIBUTE: "{{ OIDC.ATTRIBUTES.USERNAME }}"
|
||
|
||
# Docker
|
||
PRETIX_IMAGE_CUSTOM: "pretix_custom"
|
||
PRETIX_IMAGE: "{{ applications | get_app_conf(application_id, 'docker.services.pretix.image') }}"
|
||
PRETIX_VERSION: "{{ applications | get_app_conf(application_id, 'docker.services.pretix.version') }}"
|
||
PRETIX_CONTAINER: "{{ applications | get_app_conf(application_id, 'docker.services.pretix.name') }}"
|
||
PRETIX_DATA_VOLUME: "{{ applications | get_app_conf(application_id, 'docker.volumes.data') }}"
|
||
PRETIX_OIDC_PLUGIN_VERSION: "{{ applications | get_app_conf(application_id, 'plugins.oidc.version') }}"
|