television/src/api/scripts/run.sh
2025-02-08 23:48:30 +00:00

19 lines
No EOL
469 B
Bash

#!/bin/bash
set -e
# If there's a init.sh script in the /app directory, run it before starting
PRE_START_PATH=/app/init.sh
if [ -f $PRE_START_PATH ] ; then
. "$PRE_START_PATH"
else
echo "There is no prescript $PRE_START_PATH"
fi
# Start Waitress
echo "waitress-serve $APP_MODULE"
pwd
waitress-serve --port=8080 --threads=16 \
--trusted-proxy='*' --log-untrusted-proxy-headers \
--trusted-proxy-headers='x-forwarded-for x-forwarded-proto' \
--call $APP_MODULE