bundles/pretalx: introduce
This commit is contained in:
parent
0b9056bd2b
commit
70944d7065
9 changed files with 314 additions and 0 deletions
9
bundles/pretalx/files/pretalx-clearsessions.service
Normal file
9
bundles/pretalx/files/pretalx-clearsessions.service
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=pretalx clearsessions
|
||||
|
||||
[Service]
|
||||
User=pretalx
|
||||
Group=pretalx
|
||||
Environment=PRETALX_CONFIG_FILE=/opt/pretalx/pretalx.cfg
|
||||
WorkingDirectory=/opt/pretalx
|
||||
ExecStart=/opt/pretalx/venv/bin/python -m pretalx clearsessions
|
9
bundles/pretalx/files/pretalx-clearsessions.timer
Normal file
9
bundles/pretalx/files/pretalx-clearsessions.timer
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Run pretalx-clearsessions
|
||||
|
||||
[Timer]
|
||||
OnCalendar=monthly
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
9
bundles/pretalx/files/pretalx-runperiodic.service
Normal file
9
bundles/pretalx/files/pretalx-runperiodic.service
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=pretalx runperiodic
|
||||
|
||||
[Service]
|
||||
User=pretalx
|
||||
Group=pretalx
|
||||
Environment=PRETALX_CONFIG_FILE=/opt/pretalx/pretalx.cfg
|
||||
WorkingDirectory=/opt/pretalx
|
||||
ExecStart=/opt/pretalx/venv/bin/python -m pretalx runperiodic
|
9
bundles/pretalx/files/pretalx-runperiodic.timer
Normal file
9
bundles/pretalx/files/pretalx-runperiodic.timer
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Run pretalx-runperiodic
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*:0/5
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
14
bundles/pretalx/files/pretalx-web.service
Normal file
14
bundles/pretalx/files/pretalx-web.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=pretalx web service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=pretalx
|
||||
Group=pretalx
|
||||
Environment=PRETALX_CONFIG_FILE=/opt/pretalx/pretalx.cfg
|
||||
WorkingDirectory=/opt/pretalx/src/src
|
||||
ExecStart=/opt/pretalx/venv/bin/gunicorn pretalx.wsgi --name pretalx --workers 4 --max-requests 1200 --max-requests-jitter 50 --log-level=info --bind=127.0.0.1:8345
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
14
bundles/pretalx/files/pretalx-worker.service
Normal file
14
bundles/pretalx/files/pretalx-worker.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=pretalx background worker
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=pretalx
|
||||
Group=pretalx
|
||||
Environment=PRETALX_CONFIG_FILE=/opt/pretalx/pretalx.cfg
|
||||
ExecStart=/opt/pretalx/venv/bin/celery -A pretalx.celery_app worker -l info
|
||||
WorkingDirectory=/opt/pretalx
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
24
bundles/pretalx/files/pretalx.cfg
Normal file
24
bundles/pretalx/files/pretalx.cfg
Normal file
|
@ -0,0 +1,24 @@
|
|||
[filesystem]
|
||||
data = /opt/pretalx/data
|
||||
static = /opt/pretalx/static
|
||||
|
||||
[site]
|
||||
debug = False
|
||||
url = https://${domain}
|
||||
|
||||
[database]
|
||||
backend = postgresql
|
||||
name = ${database['database']}
|
||||
user = ${database['user']}
|
||||
password = ${database['password']}
|
||||
host = ${database.get('host', 'localhost')}
|
||||
port = ${database.get('port', 5432)}
|
||||
|
||||
[mail]
|
||||
from = ${mail_from}
|
||||
host = localhost
|
||||
port = 25
|
||||
user =
|
||||
password =
|
||||
tls = False
|
||||
ssl = False
|
Loading…
Add table
Add a link
Reference in a new issue