add ldap frontend

This commit is contained in:
Franzi 2021-12-21 10:48:22 +01:00
parent 6543d1eba4
commit 121f49a828
Signed by: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 109 additions and 0 deletions

View file

@ -0,0 +1,4 @@
<%
from bundlewrap.metadata import metadata_to_json
%>\
${metadata_to_json(node.metadata.get('ldap-frontend', {}))}

View file

@ -0,0 +1,14 @@
[Unit]
Description=LDAP fronten
After=network.target
Requires=slapd.service
[Service]
User=www-data
Group=www-data
Environment=APP_CONFIG=/opt/ldap-frontend/config.json
WorkingDirectory=/opt/ldap-frontend/src
ExecStart=/opt/ldap-frontend/venv/bin/gunicorn --threads 4 --bind 127.0.0.1:23000 'ldap_frontend:app'
[Install]
WantedBy=multi-user.target