lloesche / valheim-server-docker

Valheim dedicated gameserver with automatic update, World backup, BepInEx and ValheimPlus mod support
https://hub.docker.com/r/lloesche/valheim-server
Apache License 2.0
1.91k stars 269 forks source link

Valheim Plus without passwort - environment variable SERVER_PASS can't be leaved blank #568

Open JackTheFragger opened 1 year ago

JackTheFragger commented 1 year ago

To run a local dedicated server on my synology nas I wanted to disable the password for valheim plus.

I've edited the valheim_plus.cfg as you described. The variable VALHEIM_PLUS is set to "true" and SERVER_PUBLIC to "false". But the environment variable SERVER_PASS can't be set to empty ("") because you have to set a value. By deleting the value SERVER_PASS is your default value "secret".

That's why it isn't possible to run a lan dedicated server without password.

Possible solutions could be to not have a default password or to use an environment variable like "SERVER_DISABLE_PASS" to "true" with default value "false" to set an empty password.

caseodilla commented 1 year ago

Are you deleting the entire variable SERVER_PASS, or are you just setting SERVER_PASS=, i.e. setting it to blank?

JackTheFragger commented 1 year ago

I've tried both. If I delete the entire variable, the password will be 'secret' because it's the default value. Setting 'SERVER_PASS=' isn't possible because the GUI of docker ap at my synology nas doesn't allow blank values.