33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
---
|
|
pretix_config_instance_name: "My pretix installation"
|
|
pretix_config_url: "https://pretix.example.org"
|
|
pretix_config_currency: "EUR"
|
|
pretix_config_data_dir: "{{ pretix_data_dir }}"
|
|
pretix_config_trust_x_forwarded_for: "on"
|
|
pretix_config_trust_x_forwarded_proto: "on"
|
|
|
|
pretix_config: {}
|
|
pretix_default_config:
|
|
pretix:
|
|
url: "{{ pretix_config_url }}"
|
|
instance_name: "{{ pretix_config_instance_name }}"
|
|
datadir: "{{ pretix_config_data_dir }}"
|
|
trust_x_forwarded_for: "{{ pretix_config_trust_x_forwarded_for }}"
|
|
trust_x_forwarded_proto: "{{ pretix_config_trust_x_forwarded_proto }}"
|
|
currency: "{{ pretix_config_currency }}"
|
|
database:
|
|
mail:
|
|
redis:
|
|
celery:
|
|
|
|
pretix_config_merged: >-2
|
|
{{ pretix_default_config | combine(pretix_config | default({}), recursive=True) }}
|
|
|
|
pretix_config_file_content: |+2
|
|
{% for kv in (pretix_config_merged | dict2items) %}
|
|
[{{ kv.key }}]
|
|
{% for entry in ((kv.value | default({}, true)) | dict2items) %}
|
|
{{ entry.key }}={{ entry.value }}
|
|
{% endfor %}
|
|
{% endfor %}
|