bundles/ldap-frontend: use proper FLASK_SECRET_KEY

This commit is contained in:
Franzi 2021-12-22 07:34:53 +01:00
parent 121f49a828
commit 4c55f0878d
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,5 @@
[Unit]
Description=LDAP fronten
Description=LDAP frontend
After=network.target
Requires=slapd.service
@ -7,6 +7,7 @@ Requires=slapd.service
User=www-data
Group=www-data
Environment=APP_CONFIG=/opt/ldap-frontend/config.json
Environment=FLASK_SECRET_KEY=${repo.vault.password_for(f'{node.name} ldap-frontend secret key')}
WorkingDirectory=/opt/ldap-frontend/src
ExecStart=/opt/ldap-frontend/venv/bin/gunicorn --threads 4 --bind 127.0.0.1:23000 'ldap_frontend:app'

View file

@ -35,6 +35,7 @@ actions = {
files = {
'/etc/systemd/system/ldap-frontend.service': {
'content_type': 'mako',
'triggers': {
'action:systemd-reload',
'svc_systemd:ldap-frontend:restart',