fix crossplay in ss

This commit is contained in:
finn committed 2026-09-30 06:21:29 -07:00
1 parent 09bed31f06
commit 9d2b5779bd
2 files changed
+9 -6

No files matched your search

+6 -5
View File
@@ -92,12 +92,12 @@ set -euo pipefail
# ---------------------------------------------------------------------------
# Server settings - edit these before saving the StackScript.
# ---------------------------------------------------------------------------
SERVER_NAME="Valheim Server"
WORLD_NAME="Dedicated"
SERVER_NAME="ServerName"
WORLD_NAME="World Name"
# Must be at least 5 characters, otherwise valheim_server.x86_64 refuses to
# start. Anything saved here is readable by anyone with access to the
# StackScript, so change it.
SERVER_PASS="changeme123"
SERVER_PASS="SomePassword"
# true plus crossplay willl list the server in the in-game community browser.
SERVER_PUBLIC="true"
SERVER_CROSSPLAY="true"
@@ -180,14 +180,14 @@ docker run -d \
--cap-add=sys_nice \
--stop-timeout 120 \
--restart unless-stopped \
-p 2456-2457:2456-2457/udp \
-p 2456-2458:2456-2458/udp \
-v "${CONFIG_DIR}:/config" \
-v "${DATA_DIR}:/opt/valheim" \
-e SERVER_NAME="$SERVER_NAME" \
-e WORLD_NAME="$WORLD_NAME" \
-e SERVER_PASS="$SERVER_PASS" \
-e SERVER_PUBLIC="$SERVER_PUBLIC" \
-e SERVER_CROSSPLAY="$SERVER_CROSSPLAY" \
-e CROSSPLAY="$SERVER_CROSSPLAY" \
-e SERVER_ARGS="-modifier resources more" \
"$IMAGE"
@@ -196,3 +196,4 @@ echo "The first start downloads ~1GB from Steam and takes several minutes."
echo "Follow progress with: docker logs -f $CONTAINER_NAME"
```