add ldap frontend
This commit is contained in:
parent
6543d1eba4
commit
121f49a828
5 changed files with 109 additions and 0 deletions
4
bundles/ldap-frontend/files/config.json
Normal file
4
bundles/ldap-frontend/files/config.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
<%
|
||||
from bundlewrap.metadata import metadata_to_json
|
||||
%>\
|
||||
${metadata_to_json(node.metadata.get('ldap-frontend', {}))}
|
14
bundles/ldap-frontend/files/ldap-frontend.service
Normal file
14
bundles/ldap-frontend/files/ldap-frontend.service
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue