Skip to content

Commit

Permalink
Added -public flag
Browse files Browse the repository at this point in the history
  • Loading branch information
z3orc committed Mar 3, 2021
1 parent 3af5e1e commit 9f695be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ENV NAME="My server"
ENV PASSWORD="secret"
ENV WORLD="Dedicated"
ENV PORT=2456
ENV PUBLIC=1

ENTRYPOINT ["/bin/bash" , "entrypoint.sh"]

Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export SteamAppId=892970
# Tip: Make a local copy of this script to avoid it being overwritten by steam.
# NOTE: Minimum password length is 5 characters & Password cant be in the server name.
# NOTE: You need to make sure the ports 2456-2458 is being forwarded to your server through your local router & firewal>
./valheim_server.x86_64 -name "${NAME}" -port ${PORT} -world "${WORLD}" -password "${PASSWORD}"
./valheim_server.x86_64 -name "${NAME}" -port ${PORT} -world "${WORLD}" -password "${PASSWORD}" -public${PUBLIC}

export LD_LIBRARY_PATH=$templdpath
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ docker run -d \
-e NAME="My server" \
-e WORLD="Dedicated" \
-e PASSWORD="secret" \
-e PUBLIC=1 \
z3orc/valheim-server
```

0 comments on commit 9f695be

Please sign in to comment.