make config templated
This commit is contained in:
parent
3528c99990
commit
4e1d53faaf
2 changed files with 39 additions and 27 deletions
|
@ -0,0 +1,22 @@
|
||||||
|
pretalx:
|
||||||
|
filesystem:
|
||||||
|
data: /var/pretalx/data
|
||||||
|
static: /var/pretalx/static
|
||||||
|
site:
|
||||||
|
debug: False
|
||||||
|
url: https://pretalx.mydomain.com
|
||||||
|
database:
|
||||||
|
backend: postgresql
|
||||||
|
name: pretalx
|
||||||
|
user: False
|
||||||
|
password: ChangeMe
|
||||||
|
host: localhost
|
||||||
|
port: 5432
|
||||||
|
mail:
|
||||||
|
from: admin@localhost
|
||||||
|
host: localhost
|
||||||
|
port: 25
|
||||||
|
user: admin
|
||||||
|
password: ChangeMe
|
||||||
|
tls: False
|
||||||
|
ssl: True
|
|
@ -1,34 +1,24 @@
|
||||||
# This is an example pretalx configuration file.
|
|
||||||
# Documentation: https://docs.pretalx.org/administrator/configure.html
|
|
||||||
|
|
||||||
[filesystem]
|
[filesystem]
|
||||||
data = /var/pretalx/data
|
data = {{ salt['pillar.get']('pretalx:filesystem:data', '/var/pretalx/data') }}
|
||||||
static = /var/pretalx/static
|
static = {{ salt['pillar.get']('pretalx:filesystem:static', '/var/pretalx/static') }}
|
||||||
|
|
||||||
[site]
|
[site]
|
||||||
debug = False
|
debug = {{ salt['pillar.get']('pretalx:site:debug', 'False') }}
|
||||||
url = https://pretalx.mydomain.com
|
url = {{ salt['pillar.get']('pretalx:site:url', 'https://pretalx.mydomain.com') }}
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
# For MySQL, replace with "mysql"
|
backend = {{ salt['pillar.get']('pretalx:database:backend', 'postgresql') }}
|
||||||
backend = postgresql
|
name = {{ salt['pillar.get']('pretalx:database:name', 'pretalx') }}
|
||||||
name = pretalx
|
user = {{ salt['pillar.get']('pretalx:database:user', 'False') }}
|
||||||
user = pretalx
|
password = {{ salt['pillar.get']('pretalx:database:password', 'ChangeMe') }}
|
||||||
# For MySQL, enter the user password. For PostgreSQL on the same host,
|
host = {{ salt['pillar.get']('pretalx:database:host', 'localhost') }}
|
||||||
# we don't need one because we can use peer authentification if our
|
port = {{ salt['pillar.get']('pretalx:database:port', '5432') }}
|
||||||
# PostgreSQL user matches our unix user.
|
|
||||||
password = Change this in production or you're going to have a bad time
|
|
||||||
# For MySQL, you can use a local socket, e.g. /var/run/mysqld/mysqld.sock
|
|
||||||
# For a remote host, supply an IP address
|
|
||||||
# For local postgres authentication, you can leave the host empty
|
|
||||||
host = localhost
|
|
||||||
port = 5432
|
|
||||||
|
|
||||||
[mail]
|
[mail]
|
||||||
from = admin@localhost
|
from = {{ salt['pillar.get']('pretalx:mail:from', 'admin@localhost') }}
|
||||||
host = localhost
|
host = {{ salt['pillar.get']('pretalx:mail:host', 'localhost') }}
|
||||||
port = 25
|
port = {{ salt['pillar.get']('pretalx:mail:port', '25') }}
|
||||||
user = admin
|
user = {{ salt['pillar.get']('pretalx:mail:user', 'admin') }}
|
||||||
password = Change this in production or you're going to have a bad time
|
password = {{ salt['pillar.get']('pretalx:mail:password', 'ChangeMe') }}
|
||||||
tls = False
|
tls = {{ salt['pillar.get']('pretalx:mail:tls', 'False') }}
|
||||||
ssl = True
|
ssl = {{ salt['pillar.get']('pretalx:mail:ssl', 'True') }}
|
||||||
|
|
Loading…
Reference in a new issue