ansible/roles/docker_pretix/templates/pretix.cfg.j2

39 lines
1.1 KiB
Django/Jinja

[pretix]
instance_name={{ pretix_instance_name }}
url=https://{{ pretix_domain }}
currency={{ pretix_currency }}
; DO NOT change the following value, it has to be set to the location of the
; directory *inside* the docker container
datadir=/data
registration={{ pretix_registration }}
[locale]
default={{ pretix_locale_default }}
timezone={{ pretix_locale_timezone }}
[database]
backend={{ pretix_db_backend }}
name={{ unhb_postgres_containers['pretix'].db }}
user={{ unhb_postgres_containers['pretix'].user }}
password={{ unhb_postgres_containers['pretix'].password }}
host={{ pretix_db_container_name }}
port={{ unhb_postgres_containers['pretix'].port }}
[mail]
from={{ pretix_mail_from }}
host={{ pretix_mail_host }}
user={{ pretix_mail_user }}
password={{ pretix_mail_password }}
port={{ pretix_mail_port }}
tls=on
ssl=off
[redis]
location=redis://{{ pretix_redis_container_name }}/0
; Remove the following line if you are unsure about your redis'security
; to reduce impact if redis gets compromised.
sessions={{ pretix_redis_sessions }}
[celery]
backend=redis://{{ pretix_redis_container_name }}/1
broker=redis://{{ pretix_redis_container_name }}/2