|
|
@@ -6,6 +6,9 @@
|
|
|
|
|
|
set -e
|
|
|
|
|
|
+# Wait for XDG_RUNTIME_DIR
|
|
|
+until [ -d "${XDG_RUNTIME_DIR}" ]; do sleep 0.5; done
|
|
|
+
|
|
|
# Set default display
|
|
|
export DISPLAY="${DISPLAY:-:0}"
|
|
|
# PipeWire-Pulse server socket path
|
|
|
@@ -15,9 +18,6 @@ export PIPEWIRE_RUNTIME_DIR="${PIPEWIRE_RUNTIME_DIR:-${XDG_RUNTIME_DIR:-/tmp}}"
|
|
|
export PULSE_RUNTIME_PATH="${PULSE_RUNTIME_PATH:-${XDG_RUNTIME_DIR:-/tmp}/pulse}"
|
|
|
export PULSE_SERVER="${PULSE_SERVER:-unix:${PULSE_RUNTIME_PATH:-${XDG_RUNTIME_DIR:-/tmp}/pulse}/native}"
|
|
|
|
|
|
-# Wait for XDG_RUNTIME_DIR
|
|
|
-until [ -d "${XDG_RUNTIME_DIR}" ]; do sleep 0.5; done
|
|
|
-
|
|
|
# Configure NGINX
|
|
|
if [ "$(echo ${SELKIES_ENABLE_BASIC_AUTH} | tr '[:upper:]' '[:lower:]')" != "false" ]; then htpasswd -bcm "${XDG_RUNTIME_DIR}/.htpasswd" "${SELKIES_BASIC_AUTH_USER:-${USER}}" "${SELKIES_BASIC_AUTH_PASSWORD:-${PASSWD}}"; fi
|
|
|
echo "# Selkies-GStreamer NGINX Configuration
|