This README guide will walk you through the process of setting up the Unturned Git Pterodactyl egg with your own GitHub repository.
This egg provides an Unturned dedicated server with GitHub repository sync capabilities. It allows you to manage multiple Unturned servers from a single private GitHub repository.
- A GitHub account
- Access to a Pterodactyl panel
- Basic knowledge of Git and GitHub
- Log in to your GitHub account
- Create a new private repository for your Unturned server files
- You don't need to initialize it with a README file
- Clone your new repository to your local machine
- Create directories for each of your Unturned servers, for example:
/unbeaten1 /unbeaten2 /unbeaten3
- Add your Unturned server files to each directory
- Commit and push the changes to GitHub
Your repository URL will look like this:
github.com/RestoreMonarchy/UnturnedAmericaServers.git
- Go to GitHub Settings > Developer settings > Personal access tokens
- Click "Generate new token"
- Give it a descriptive name
- Select only the
repo
scope to limit access to repository operations - Generate the token and copy it (you won't be able to see it again)
For more detailed instructions, refer to the GitHub documentation on creating a personal access token.
- Download the
egg-unturned-git.json
file from this repository - In your Pterodactyl panel, navigate to the Nests section
- Select the appropriate nest and click "Import Egg"
- Upload the
egg-unturned-git.json
file
- In the Pterodactyl panel, create a new server using this egg
- Configure the server variables:
- Set
REPOSITORY_ENABLED
to 1 - Set
REPOSITORY_URL
to your GitHub repository URL - Set
REPOSITORY_ACCESS_TOKEN
to your personal access token - Set
REPOSITORY_BRANCH
to the desired branch (usually "main" or "master") - Set
REPOSITORY_DIR
to the specific server directory (e.g., "unbeaten1")
- Set
- Configure other server settings as needed
- Create and start the server
- The server will automatically sync with your GitHub repository on startup
- Any changes pushed to the specified branch and directory will be pulled on the next server restart
- To update a server, push changes to its directory in your GitHub repository, then restart the server in Pterodactyl
- Create a new server in Pterodactyl for each Unturned server
- Use the same repository URL and access token for all servers
- Set a unique
REPOSITORY_DIR
for each server corresponding to its directory in your GitHub repository
- If the server fails to start, check the console logs for any error messages
- Ensure your GitHub repository is accessible and the access token is correct
- Verify that the
REPOSITORY_DIR
is set correctly for each server
For more detailed information about Unturned server configuration, refer to the official Unturned documentation.