bundlewrap/bundles/ldap-frontend/files/ldap-frontend.service

16 lines
448 B
SYSTEMD
Raw Permalink Normal View History

2021-12-21 09:48:22 +00:00
[Unit]
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
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