infobeamer-cms: make usable
This commit is contained in:
parent
bf125a73b1
commit
bac2a369c4
6 changed files with 209 additions and 17 deletions
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=infobeamer-cms sync
|
||||
After=network.target
|
||||
Requires=infobeamer-cms.service
|
||||
|
||||
[Service]
|
||||
User=infobeamer-cms
|
||||
Group=infobeamer-cms
|
||||
WorkingDirectory=/opt/infobeamer-cms
|
||||
ExecStart=curl http://127.0.0.1:8000/sync
|
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Run infobeamer-cms sync
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*:0/5
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
18
bundles/infobeamer-cms/files/infobeamer-cms.service
Normal file
18
bundles/infobeamer-cms/files/infobeamer-cms.service
Normal file
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=infobeamer-cms - upload custom info pages to info-beamer
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
Environment=SETTINGS=settings.cfg
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
ExecStart=/usr/bin/gunicorn frontend:app -b 127.0.0.1:${PORT} -w ${WORKERS} -t 120 -k gevent --max-requests=1000
|
||||
|
||||
# You may have to adjust these settings
|
||||
User=infobeamer-cms
|
||||
Group=infobeamer-cms
|
||||
WorkingDirectory=/opt/infobeamer-cms
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -27,7 +27,7 @@ SETUP_IDS = ${SETUP_IDS}
|
|||
|
||||
# Generate some random string. It's used for signing
|
||||
# urls send to moderators.
|
||||
URL_KEY = '${URL_KEY}'
|
||||
URL_KEY = b'${URL_KEY}'
|
||||
|
||||
# Push notifications for moderation requests user pushover.
|
||||
# Specify a target key and the app key to use.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue