ansible-nas
ansible-nas copied to clipboard
:sparkles: Add Valheim server
What this PR does / why we need it:
Adds valheim-docker server.
Which issue (if any) this PR fixes:
Fixes #696
Any other useful info:
I don't play the game and have no means to check this further, but the server itself seems to work:
03/05/2024 12:54:45: Game server connected
[Valheim][steam]: ###########################################################################
[Valheim][steam]: Valheim Server - Tue Mar 5 13:00:01 CET 2024 Backup Process
[Valheim][steam]: Starting auto backup process...
[Valheim][steam]: Removing old backups...
[Valheim][steam]: Creating backup...
[ODIN][INFO] - Adding /home/steam/.config/unity3d/IronGate/Valheim/adminlist.txt to backup file, with path /adminlist.txt
[ODIN][INFO] - Adding /home/steam/.config/unity3d/IronGate/Valheim/bannedlist.txt to backup file, with path /bannedlist.txt
[ODIN][INFO] - Adding /home/steam/.config/unity3d/IronGate/Valheim/permittedlist.txt to backup file, with path /permittedlist.txt
[ODIN][INFO] - Adding /home/steam/.config/unity3d/IronGate/Valheim/prefs to backup file, with path /prefs
[ODIN][INFO] - Adding /home/steam/.config/unity3d/IronGate/Valheim/worlds_local to backup file, with path /worlds_local
[ODIN][INFO] - Adding /home/steam/.config/unity3d/IronGate/Valheim/worlds_local/Dedicated.fwl to backup file, with path /worlds_local/Dedicated.fwl
[Valheim][steam]: Backup process complete! Created 20240305-130001-backup.tar.gz
[Valheim][steam]: ###########################################################################
03/05/2024 13:04:48: Connections 0 ZDOS:81 sent:0 recv:0
Just noticed this MR - will test and get back to you.
What do the 'available externally' traefik tags do? To connect to this server externally, the game requires that the server is reachable on those 3 specified ports (none of which are 443), so these ports needed to be forwarded from your router additionally. Once that's done you can reach the server using your *.myawesomedomain.com
wildcard DNS entry (e.g. valheim.myawesomedomain.com
- no traefik magic required
Indeed, there is no fronted to speak of here, so this is not really need for traefik, but then this role can't do everything for the user.
Yes, there's no getting around the fact that the user will need to make their NAS server accessible on the specified ports from the external network. I suspect that the Minecraft server role has the same caveat. Router automation is outside the scope of the ansible-nas project, but this role will do 95% of the work for users, and the last 5% could be added to the README.
Tested and working with the default variables when connecting to valheim.<mydomain>:2456
Yes, there's no getting around the fact that the user will need to make their NAS server accessible on the specified ports from the external network. I suspect that the Minecraft server role has the same caveat. Router automation is outside the scope of the ansible-nas project, but this role will do 95% of the work for users, and the last 5% could be added to the README.
users already had to do this for port 80/443, so 3 more ports shouldn't require a lot of explanation/effort https://ansible-nas.io/docs/getting-started/external-access/#router-configuration
Awesome contribution, thanks!