lemonldap-ng/example/images/lemonldap-ng/root/usr/local/bin/lemonldap-ng

26 lines
656 B
Bash
Executable File

#!/bin/sh
set -euo pipefail
# uwsgi wants just a path for unix socket
LISTEN=$(echo ${LLNG_LISTEN} | sed -E 's/^unix://')
exec uwsgi \
--plugin psgi \
--psgi /usr/share/lemonldap-ng/llng-server/llng-server.psgi \
--${LLNG_SOCKET_PROTO}-socket ${LISTEN} \
--chmod-socket=660 \
--master \
--max-worker-lifetime 604800 \
--max-requests 100000 \
--disable-logging \
--buffer-size 65535 \
--limit-post 0 \
--die-on-term \
--cheaper 2 \
--workers ${LLNG_WORKERS} \
--cheaper-initial 2 \
--cheaper-algo spare \
--cheaper-step 1 \
--need-app