bundles/infobeamer-cms: new version requires new configs

This commit is contained in:
Franzi 2023-12-26 14:49:04 +01:00
parent 3ddc75d846
commit 2670d60906
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 6 additions and 6 deletions

View file

@ -4,7 +4,8 @@ After=network.target
Requires=infobeamer-cms.service
[Service]
Environment=SETTINGS=/opt/infobeamer-cms/settings.toml
WorkingDirectory=/opt/infobeamer-cms/src
User=infobeamer-cms
Group=infobeamer-cms
WorkingDirectory=/opt/infobeamer-cms
ExecStart=curl -s -H "Host: ${domain}" http://127.0.0.1:8000/sync
ExecStart=/opt/infobeamer-cms/venv/bin/python syncer.py

View file

@ -2,7 +2,7 @@
Description=Run infobeamer-cms sync
[Timer]
OnCalendar=*:0/5
OnCalendar=minutely
Persistent=true
[Install]

View file

@ -29,9 +29,6 @@ def nginx(metadata):
'/': {
'target': 'http://127.0.0.1:8000',
},
'/sync': {
'return': 403,
},
'/static': {
'alias': '/opt/infobeamer-cms/src/static',
},
@ -45,6 +42,7 @@ def nginx(metadata):
@metadata_reactor.provides(
'infobeamer-cms/config/DOMAIN',
'infobeamer-cms/config/TIME_MAX',
'infobeamer-cms/config/TIME_MIN',
)
@ -57,6 +55,7 @@ def event_times(metadata):
return {
'infobeamer-cms': {
'config': {
'DOMAIN': metadata.get('infobeamer-cms/domain'),
'TIME_MAX': int(event_end.timestamp()),
'TIME_MIN': int(event_start.timestamp()),
},