[Unit] Description=LDAP frontend After=network.target Requires=slapd.service [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' [Install] WantedBy=multi-user.target