change default database to sqlite
This commit is contained in:
parent
4e1d53faaf
commit
ca8d8d39ab
2 changed files with 16 additions and 15 deletions
|
@ -1,6 +1,11 @@
|
||||||
pretalx-data-directory-exists:
|
pretalx-data-directory-exists:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: /opt/pretalx
|
- name: /opt/pretalx/data
|
||||||
|
- makedirs: True
|
||||||
|
|
||||||
|
pretalx-public-directory-exists:
|
||||||
|
file.directory:
|
||||||
|
- name: /opt/pretalx/public
|
||||||
- makedirs: True
|
- makedirs: True
|
||||||
|
|
||||||
pretalx-config-file-is-present:
|
pretalx-config-file-is-present:
|
||||||
|
@ -12,7 +17,7 @@ pretalx-config-file-is-present:
|
||||||
pretalx-docker-container-running:
|
pretalx-docker-container-running:
|
||||||
docker_container.running:
|
docker_container.running:
|
||||||
- name: pretalx
|
- name: pretalx
|
||||||
- image: {{ salt['pillar.get']('forgejo:image:path', 'docker.io/pretalx/standalone:latest') }}:{{ salt['pillar.get']('forgejo:image:version', 'v2024.1.0') }}
|
- image: {{ salt['pillar.get']('pretalx:image:path', 'docker.io/pretalx/standalone:latest') }}:{{ salt['pillar.get']('pretalx:image:version', 'v2024.1.0') }}
|
||||||
- container_name: pretalx
|
- container_name: pretalx
|
||||||
- environment:
|
- environment:
|
||||||
- PRETALX_FILESYSTEM_MEDIA=/public/media
|
- PRETALX_FILESYSTEM_MEDIA=/public/media
|
||||||
|
@ -22,7 +27,7 @@ pretalx-docker-container-running:
|
||||||
- bridge
|
- bridge
|
||||||
- binds:
|
- binds:
|
||||||
- /opt/pretalx/pretalx.cfg:/etc/pretalx/pretalx.cfg:ro
|
- /opt/pretalx/pretalx.cfg:/etc/pretalx/pretalx.cfg:ro
|
||||||
- pretalx-data:/data
|
- /opt/pretalx/data:/data
|
||||||
- pretalx-public:/public
|
- /opt/pretalx/public:/public
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
- "{{ salt['pillar.get']('forgejo:container_web_port', "127.0.0.1:3000") }}:80"
|
- "{{ salt['pillar.get']('pretalx:container_web_port', "127.0.0.1:3000") }}:80"
|
||||||
|
|
|
@ -1,18 +1,14 @@
|
||||||
[filesystem]
|
|
||||||
data = {{ salt['pillar.get']('pretalx:filesystem:data', '/var/pretalx/data') }}
|
|
||||||
static = {{ salt['pillar.get']('pretalx:filesystem:static', '/var/pretalx/static') }}
|
|
||||||
|
|
||||||
[site]
|
[site]
|
||||||
debug = {{ salt['pillar.get']('pretalx:site:debug', 'False') }}
|
debug = {{ salt['pillar.get']('pretalx:site:debug', 'False') }}
|
||||||
url = {{ salt['pillar.get']('pretalx:site:url', 'https://pretalx.mydomain.com') }}
|
url = {{ salt['pillar.get']('pretalx:site:url', 'https://pretalx.mydomain.com') }}
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
backend = {{ salt['pillar.get']('pretalx:database:backend', 'postgresql') }}
|
backend = {{ salt['pillar.get']('pretalx:database:backend', 'sqlite') }}
|
||||||
name = {{ salt['pillar.get']('pretalx:database:name', 'pretalx') }}
|
name = {{ salt['pillar.get']('pretalx:database:name', '') }}
|
||||||
user = {{ salt['pillar.get']('pretalx:database:user', 'False') }}
|
user = {{ salt['pillar.get']('pretalx:database:user', '') }}
|
||||||
password = {{ salt['pillar.get']('pretalx:database:password', 'ChangeMe') }}
|
password = {{ salt['pillar.get']('pretalx:database:password', '') }}
|
||||||
host = {{ salt['pillar.get']('pretalx:database:host', 'localhost') }}
|
host = {{ salt['pillar.get']('pretalx:database:host', '') }}
|
||||||
port = {{ salt['pillar.get']('pretalx:database:port', '5432') }}
|
port = {{ salt['pillar.get']('pretalx:database:port', '') }}
|
||||||
|
|
||||||
[mail]
|
[mail]
|
||||||
from = {{ salt['pillar.get']('pretalx:mail:from', 'admin@localhost') }}
|
from = {{ salt['pillar.get']('pretalx:mail:from', 'admin@localhost') }}
|
||||||
|
|
Loading…
Reference in a new issue