Prerequisites
Follow this steps to get everything ready for the deployment.-
A Cloudflare account. The free tier is sufficient, but you need to enable R2 and Access for the selfhoster.pro to work.
Make sure you have the following information:
- A domain name managed by Cloudflare
- clean up the default DNS records (Cloudflare Zone dashboard > DNS > Delete all default A, CNAME and MX, records)
- Your Cloudflare email, Zone ID and Account ID
- Create a Cloudflare API token (Use template “Create Additional Tokens”)
- Enable R2 (R2 > Choose free tier > Add your billing information)
- Enable Access (Choose free tier > Add your billing information)
-
An AWS account. You need to create an Access Key and Secret Key for the selfhoster.pro to work with AdministratorAccess.
Make sure you have the following information:
- Your AWS Access Key
- Your AWS Secret Key
- Your AWS Region (e.g. eu-west-1)
-
Your local environment setup:
- Terraform
- Go
- AWS CLI (Run
aws configureto set up your AWS credentials) - Git
- Cloudflared
Launching Coolify
1. Generate a Cloudflare token
In your terminal, run the following commands one by one.You’ve just created a new token for your Cloudflare account. Save it somewhere
safe, you will need it later
2. Configure the project.
(1/4) Fill in thesecrets.auto.tfvars with your Cloudflare credentials and the token you just created.
variables.auto.tfvars. Follow the comments in the file to fill in the required information.
/config/public_keys. You can add multiple keys, one per line.
You can use the one in your ssh folder
~/.ssh/id_rsa.pub or generate a new
one with ssh-keygen -t rsa -b 4096 -C~/.ssh/config file:
This will allow you to access the server with
ssh ssh.yourdomain.com3. Deploy
Run the following commands to deploy Coolify.After the installer runs a new file (
credentials.txt) will appear with your email
SMTP and R2 bucket credentialsIn 5 minutes, you will be able to access Coolify at
https://ops.yourdomain.com.Next steps
Configuring SSH access
Accessing directly to the server has never been easier and more secure
Deploying a blog and mailing list with Ghost
Selfhosting your blog and mailing list has never been easier
Securing your domain with Cloudflare
Protect your domain from DDoS attacks and more
Get your email out of the Sandbox
Learn how to get your email out of the AWS Sandbox and start sending emails
to anyone
Cloudflare tunneling and access
Add new subdomains and route them to your app
Troubleshooting Guide
Learn how to solve common issues
