bundles/infobeamer-cms: config is toml now, deploy to src/
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
b39d87f33f
commit
6292dd4c71
7 changed files with 117 additions and 279 deletions
|
@ -7,4 +7,4 @@ Requires=infobeamer-cms.service
|
|||
User=infobeamer-cms
|
||||
Group=infobeamer-cms
|
||||
WorkingDirectory=/opt/infobeamer-cms
|
||||
ExecStart=curl -s -H "Host: infobeamer-cms.c3voc.de" http://127.0.0.1:8000/sync
|
||||
ExecStart=curl -s -H "Host: ${domain}" http://127.0.0.1:8000/sync
|
||||
|
|
|
@ -4,15 +4,15 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
Type=exec
|
||||
Environment=SETTINGS=settings.cfg
|
||||
Environment=SETTINGS=/opt/infobeamer-cms/settings.toml
|
||||
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
|
||||
ExecStart=/opt/infobeamer-cms/venv/bin/gunicorn frontend:app -b 127.0.0.1:8000 -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
|
||||
WorkingDirectory=/opt/infobeamer-cms/src
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -1,64 +0,0 @@
|
|||
<%
|
||||
from json import dumps
|
||||
%>
|
||||
# This github OAuth client will be used for authentication. Create
|
||||
# one at https://github.com/organizations/ACCOUNT/settings/applications
|
||||
GITHUB_CLIENT_ID = '${GITHUB_CLIENT_ID}'
|
||||
GITHUB_CLIENT_SECRET = '${GITHUB_CLIENT_SECRET}'
|
||||
|
||||
SESSION_COOKIE_NAME = '${SESSION_COOKIE_NAME}'
|
||||
|
||||
PREFERRED_URL_SCHEME = '${PREFERRED_URL_SCHEME}'
|
||||
|
||||
# info-beamer API keys.
|
||||
# This key needs access to setups and assets as well as the
|
||||
# node-message calls. If you consider the host running this
|
||||
# code trusted, you might use a key with full account access.
|
||||
# The keys given out to users are adhoc keys based on this key.
|
||||
HOSTED_API_KEY = '${HOSTED_API_KEY}'
|
||||
|
||||
# Maximum uploads per github user
|
||||
MAX_UPLOADS = ${MAX_UPLOADS}
|
||||
|
||||
# Setup IDs using the scheduled player setup. One of the
|
||||
# playlists must be named 'User Content'. Its pages will be
|
||||
# autogenerated by the CMS when calling /sync
|
||||
SETUP_IDS = ${SETUP_IDS}
|
||||
|
||||
# Generate some random string. It's used for signing
|
||||
# urls send to moderators.
|
||||
URL_KEY = b'${URL_KEY}'
|
||||
|
||||
# Push notifications for moderation requests to an mqtt server.
|
||||
MQTT_SERVER = 'mqtt.c3voc.de'
|
||||
MQTT_USERNAME = '${MQTT_USERNAME}'
|
||||
MQTT_PASSWORD = '${MQTT_PASSWORD}'
|
||||
MQTT_TOPIC = '/voc/alert'
|
||||
MQTT_MESSAGE = '{{"level":"info","component":"infobeamer-cms","msg":"{asset} uploaded by {user}. Check it at {url}"}}'
|
||||
|
||||
# Unix timestamp allows for specifying start/end time
|
||||
# of uploaded content
|
||||
TIME_MIN = ${TIME_MIN}
|
||||
TIME_MAX = ${TIME_MAX}
|
||||
|
||||
# change this to invalidate cached static files.
|
||||
VERSION = ${VERSION}
|
||||
|
||||
# extra assets. If this is empty, only the uploaded content and a notice
|
||||
# on where to find the CMS will be shown. You can use this to overlay
|
||||
# content on top of that content.
|
||||
EXTRA_ASSETS = [
|
||||
{
|
||||
"type": "image",
|
||||
"asset": 828107, # fairydust
|
||||
# bottom left, 10px from border
|
||||
"x1":10,
|
||||
"y1":1070-66,
|
||||
"x2":10+100,
|
||||
"y2":1070,
|
||||
}
|
||||
]
|
||||
|
||||
# rooms. This is both used for the /last view as well
|
||||
# as the interruption control on /interrupt.
|
||||
ROOMS = ${dumps(node.metadata.get('infobeamer-cms/config/ROOMS', {}))}
|
4
bundles/infobeamer-cms/files/settings.toml
Normal file
4
bundles/infobeamer-cms/files/settings.toml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<%
|
||||
from tomlkit import dumps as toml_dumps
|
||||
from bundlewrap.utils.text import toml_clean
|
||||
%>${toml_clean(toml_dumps(repo.libs.faults.resolve_faults(config), sort_keys=True))}
|
Loading…
Add table
Add a link
Reference in a new issue