{"id":16099965,"url":"https://github.com/fooock/valheim-server","last_synced_at":"2025-08-22T12:09:59.967Z","repository":{"id":53774880,"uuid":"346481105","full_name":"fooock/valheim-server","owner":"fooock","description":"Valheim dedicated gameserver installer","archived":false,"fork":false,"pushed_at":"2021-11-05T20:00:38.000Z","size":35,"stargazers_count":5,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T23:33:01.983Z","etag":null,"topics":["steam","valheim","valheim-linux","valheim-server"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fooock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-10T20:19:00.000Z","updated_at":"2024-11-10T12:28:01.000Z","dependencies_parsed_at":"2022-09-15T21:11:03.151Z","dependency_job_id":null,"html_url":"https://github.com/fooock/valheim-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fooock/valheim-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fooock%2Fvalheim-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fooock%2Fvalheim-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fooock%2Fvalheim-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fooock%2Fvalheim-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fooock","download_url":"https://codeload.github.com/fooock/valheim-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fooock%2Fvalheim-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271636017,"owners_count":24794144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["steam","valheim","valheim-linux","valheim-server"],"created_at":"2024-10-09T18:44:39.228Z","updated_at":"2025-08-22T12:09:59.575Z","avatar_url":"https://github.com/fooock.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `Valheim` server installer\n\n![](https://img.shields.io/badge/Steam-Valheim-purple?style=for-the-badge\u0026logo=steam)\n\n\u003e :construction: Project in early development\n\nThis project contains all required components to deploy a ready to use `Valheim` game server. I made my best effort to had a secure configuration, but I can make mistakes. Review the configuration by yourself.\n\nIf you use this software for commercial purposes, please consider making a donation or a horde of bloodthirsty vikings led by Odin will fall on you.\n\n### Requirements\n\nYou need to have installed in your system in order to deploy a fully functional game server:\n\n* [`Ansible`](https://www.ansible.com/)\n* `make`\n\n\u003eIf you are on Windows you can use [`wsl`](https://docs.microsoft.com/windows/wsl/install-win10) in order to install the game server. \n\nNote that at this time, the game server only supports [`Ubuntu`](https://ubuntu.com/) as base operating system. Choose a Ubuntu compatible cloud provider.\n\n## Installation\n\n\u003eSee [using packer](#using-packer) if you want to create server snapshots in your favourite cloud provider.\n\nFirst, clone this repository. When done, execute the following command using your own values for the `TARGET_USER` and `TARGET_IP` variables that correspond to **your** server info:\n\n```bash\nmake TARGET_IP=1.2.3.4 TARGET_USER=root ansible-install\n```\n\n\u003eYou need to provide a `TARGET_IP`. Without this variable the command will not work.\n\nNow you need to wait the command to finish. Be patient and take a coffee :coffee:.\n\n## Configuration\n\nNow that you have your game server installed, you need to change some settings like the gameserver password, world name etc. All this can be configured by editing the `/home/steam/valheim/values.env` file, assuming the default configuration. Default values are:\n\n| Variable      \t| Default value       \t| Description                              \t|\n|---------------\t|---------------------\t|------------------------------------------\t|\n| `GS_NAME`     \t| `My Valheim gameserver` \t| The name of your game server             \t|\n| `GS_PORT`     \t| `2456`              \t| Game server port                         \t|\n| `GS_WORLD`    \t| `Dedicated`         \t| The world name without spaces             |\n| `GS_PASSWORD` \t| `secret`            \t| Game server password. Min. length is 5   \t|\n| `GS_PUBLIC`   \t| `1`                 \t| For public servers is `1`, otherwise `0` \t|\n\nWhen done, the only thing that you need to do for the new values to take effect is restart the systemd service of our game server using:\n\n```bash\nsystemctl restart valheim\n```\n\n## Using `Packer`\n\nIf you want to use `Packer` to create game server snapshots continue reading. Note that the list of currently supported cloud providers is not complete. If you want to add a new cloud provider, create a [feature request](https://github.com/fooock/valheim-server/issues).\n\n#### [`Hetzner`](https://www.hetzner.com/cloud)\n\n\u003eID: `hcloud`\n\nTo use Hetzner, first you need to generate a new API token with *Read and Write* permissions. Save this token in a local environment variable called `HCLOUD_TOKEN` and then execute this command:\n\n```bash\nmake CLOUD=hcloud packer-run\n```\n\nNow, wait until finish.\n\n#### [`Vagrant`](https://www.vagrantup.com/)\n\n\u003eID: `vagrant`\n\nYou will need to have Vagrant and VirtualBox to use this installation method. Just execute this command and wait until finish:\n\n```bash\nmake CLOUD=vagrant packer-run\n```\n\nThe resulting box will be created in `output-vagrant/package.box`\n\n## License\n\nCheck [`LICENSE`](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffooock%2Fvalheim-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffooock%2Fvalheim-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffooock%2Fvalheim-server/lists"}