fix crossplay in ss
This commit is contained in:
1 parent
09bed31f06
commit
9d2b5779bd
2 files changed
+9
-6
No files matched your search
@@ -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"
|
||||
```
|
||||
|
||||
|
||||
+3
-1
@@ -43,7 +43,9 @@ FIREWALL_ID="165767433"
|
||||
# v2, 1.5 resources:
|
||||
#STACKSCRIPT_ID="2225201"
|
||||
# v3, adds crossplay
|
||||
STACKSCRIPT_ID="2226356"
|
||||
#STACKSCRIPT_ID="2226356"
|
||||
# v4 actually adds crossplay
|
||||
STACKSCRIPT_ID=2234943
|
||||
|
||||
if [[ "$SCRIPT_ACTION" == "" || "$SCRIPT_ACTION" == "--help" || "$SCRIPT_ACTION" == "-?" ]]; then
|
||||
echo "Linode helper script: create-linode.sh <action> <label> [args]"
|
||||
|
||||
Reference in new issue
Block a user