Skip to content

Commit

Permalink
Add 'WEBUI_USER' and 'WEBUI_PASS'
Browse files Browse the repository at this point in the history
These do not yet do anything, but they will soon enough.
  • Loading branch information
Josh5 committed Nov 27, 2024
1 parent 463274d commit 920bfa7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ ENV \
NVIDIA_VISIBLE_DEVICES="all"

# Set container configuration environment variables
# TODO: Set the default WEBUI_USER & WEBUI_PASS after release of SHUI
ENV \
MODE="primary" \
WEB_UI_MODE="vnc" \
Expand All @@ -554,6 +555,8 @@ ENV \
NEKO_PASSWORD_ADMIN=admin \
ENABLE_STEAM="true" \
STEAM_ARGS="-silent" \
WEBUI_USER="" \
WEBUI_PASS="" \
ENABLE_SUNSHINE="true" \
ENABLE_EVDEV_INPUTS="true" \
ENABLE_WOL_POWER_MANAGER="false" \
Expand Down
8 changes: 6 additions & 2 deletions overlay/usr/bin/start-sunshine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# File Created: Tuesday, 4th October 2022 8:22:17 pm
# Author: Josh.5 ([email protected])
# -----
# Last Modified: Tuesday, 4th October 2022 8:22:17 pm
# Modified By: Josh.5 ([email protected])
# Last Modified: Wednesday, 27th November 2024 3:54:19 pm
# Modified By: Josh5 ([email protected])
###
set -e
source /usr/bin/common-functions.sh
Expand Down Expand Up @@ -49,6 +49,10 @@ fi
if ([ "X${SUNSHINE_USER:-}" != "X" ] && [ "X${SUNSHINE_PASS:-}" != "X" ]); then
/usr/bin/sunshine "${USER_HOME:?}/.config/sunshine/sunshine.conf" --creds "${SUNSHINE_USER:?}" "${SUNSHINE_PASS:?}"
fi
# If we are running the SHUI, then force the same user upon sunshine
if ([ "X${WEBUI_USER:-}" != "X" ] && [ "X${WEBUI_PASS:-}" != "X" ]); then
/usr/bin/sunshine "${USER_HOME:?}/.config/sunshine/sunshine.conf" --creds "${WEBUI_USER:?}" "${WEBUI_PASS:?}"
fi
# Remove any auto-start scripts from user's .local dir
if [ -f "${USER_HOME:?}/.config/autostart/Sunshine.desktop" ]; then
rm -fv "${USER_HOME:?}/.config/autostart/Sunshine.desktop"
Expand Down

0 comments on commit 920bfa7

Please sign in to comment.