Hey, thanks for using this package! This script will help you make server on hetzner with all needed staff for beginners. You can watch below video to get more information about this script or keep reading 📖
⭐ If you like this repo, please consider starring it on GitHub
Variable | Description | Mandatory | Default / link | Other |
---|---|---|---|---|
HETZNER_TOKEN | Token from hetzner use for creating server and retrieve them | True | Hetzner | See how to generate token |
HETZNER_SERVER_TYPE | The type of server to be made (keep it lowercase) | False | cx11 | List with all codes! |
HETZNER_SERVER_NAME | The name of server what will appear in hetzner dashboard. | False | server | Spaces are disallowed |
HETZNER_SERVER_LOCATION | The location of the server. | False | hel1 | There is list of all locations. |
HETZNER_SSH_NAME | The name of your ssh key in the hetzner account | True | N/A | See how to generate key-pair and add to hetzner |
SSH_KEY | The private key, used for login to server | True | N/A | First generate key pair as for HETZNER_SSH_NAME then do this |
CLOUDFLARE_TOKEN | Token used for setting DNS record | False | Cloudflare token | Click me to see how! |
CLOUDFLARE_ZONE | Cloudflare zone where record will be added | Only if passed CLOUDFLARE_TOKEN |
Cloudflare | Click me to see how! |
CLOUDFLARE_EMAIL | Cloudflare user's email | Only if passed CLOUDFLARE_TOKEN |
Cloudflare | Click me to see how! |
CLOUDFLARE_RECORD | Name of the record to be add | False | server | N/A |
USERNAME | Username to be made on the server | False | user | N/A |
SWAP_SIZE | How many GB of swap | False | 2 | N/A |
Fork this repo and set all mandatory (or more as you wish) variables. Then go to GitHub repo / actions and run the action.
MIT
If you want to contribute to this repo, please open an issue or create a pull request.