15 lines
350 B
SYSTEMD
15 lines
350 B
SYSTEMD
|
[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
|