2021-12-21 09:48:22 +00:00
|
|
|
[Unit]
|
2021-12-22 06:34:53 +00:00
|
|
|
Description=LDAP frontend
|
2021-12-21 09:48:22 +00:00
|
|
|
After=network.target
|
|
|
|
Requires=slapd.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=www-data
|
|
|
|
Group=www-data
|
|
|
|
Environment=APP_CONFIG=/opt/ldap-frontend/config.json
|
2021-12-22 06:34:53 +00:00
|
|
|
Environment=FLASK_SECRET_KEY=${repo.vault.password_for(f'{node.name} ldap-frontend secret key')}
|
2021-12-21 09:48:22 +00:00
|
|
|
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
|