No compose file
The image, its ports and its restart policy are set. You never write a compose.yml.
Selfhost.dev offers one-click Caddy static site hosting on a dedicated server we provision, secure and run, with gzip compression and HTTPS set before your first file arrives. You copy the files in over SSH; the Caddyfile is already written.
No apt repository, no Caddyfile and no login to guard.
Caddy is an open source web server written in Go, known for HTTPS by default and a short config file. Here it serves a static site, with that config written for you.
Anyone with a finished site, from a landing page to a static site generator's output, who wants Caddy serving it from their own server.
When you want the site live without installing Caddy or writing a Caddyfile. For an app or API, deploy from GitHub instead.
Caddy's static files quick-start begins with five install commands, a site folder, a Caddyfile and a reload. Here Caddy is already serving a welcome page on HTTPS when the deploy finishes.
Visitors
HTTPS, gzip
Caddy
Managed Caddyfile
Content folder
Your SSH key
| A Caddy static site by hand | A Caddy static site on Selfhost.dev |
|---|---|
| Add Caddy's apt repository and install it | Caddy running, with a welcome page to replace |
| Make a site folder the caddy user can read | A content folder, shown in Overview |
| Write a Caddyfile with root, file_server and encode gzip | The Caddyfile written for you, gzip on |
| Point a domain at the server for a certificate | HTTPS on a generated address, your domain in Settings |
Caddy Docker guides publish ports 80 and 443, mount a Caddyfile and warn you to keep the /data volume so a restart does not lose your certificates. Here the container runs for you and HTTPS comes with its address.
The image, its ports and its restart policy are set. You never write a compose.yml.
The platform's proxy holds the certificate, not Caddy, so there is no /data volume for you to keep. HTTPS covers the generated address and the domain you attach.
The Caddyfile is managed, so you never run caddy reload. You only copy files.
A Caddy static site asks for little: the smallest server we offer (4 GB, x86 or ARM), your built files and a project SSH key. A domain is optional.
Launch, copy, attach a domain.
Open the Caddy template from the console and choose a 4 GB server. The template deploys in about ten minutes, with a welcome page in place.
Add a project SSH key, then copy your built files into the content folder shown in Overview. Caddy serves them compressed.
Add your own domain in Settings whenever you like. Until then, share the generated HTTPS address.
A Caddy static site here costs one server, billed by the hour from prepaid credits: $0.02/hr for a European 4 GB server, about $15 to $16 a month. Traffic is included.
| Item | Cost |
|---|---|
| The Caddy template | $0 |
| Gzip compression | $0, part of the template |
| Bandwidth to your visitors | $0, included in the server price |
| Optional daily backups | +20% of the server price |
| Server | RAM, cores, disk | Where | Rate | About a month |
|---|---|---|---|---|
cx23 (recommended) | 4 GB, 2 cores, 40 GB | Europe | $0.02/hr | $15.18 |
cax11 (ARM) | 4 GB, 2 cores, 40 GB | Europe | $0.02/hr | $16.35 |
cpx21 | 4 GB, 3 cores, 80 GB | US | $0.12/hr | $87.75 |
cpx22 | 4 GB, 2 cores, 80 GB | Singapore | $0.10/hr | $72.56 |
cx33 (more room) | 8 GB, 4 cores, 80 GB | Europe | $0.03/hr | $23.36 |
Monthly figures assume 730 hours. The US and Singapore servers need a first top-up.
With a card on file or a past top-up, your Caddy site runs for 5 more days after your balance reaches zero, then stops. Top up within 24 hours to restart it; after that it is deleted, with a 14-day copy you can restore. Welcome-credit-only servers are deleted at zero.
Price an 8 GB server for a site with an app beside it in the calculator, no signup.
On this template the platform writes and keeps the Caddyfile, set up for one job: serving your content folder, compressed, on HTTPS.
Gzip is part of the managed Caddyfile, so your pages leave the server compressed without an encode line from you.
The Caddyfile serves files only. To run an app or API, deploy it from GitHub into the same project, on the same server.
No config file of yours to version or reload. Your site changes when the files you copy in do.
The console estimates about ten minutes for the Caddy template after the server is ready; first-time server provisioning adds time.
Nothing here in your way? The template deploys in about ten minutes.
Launch CaddyTell us what the site is and what runs beside it. We answer with the server we would choose and its monthly cost.
No. The platform manages this template's Caddyfile for serving static files, so reverse_proxy and other custom rules are not part of it. To run an app or API, deploy it from GitHub into the same project, where it shares the server with your site.
Add a project SSH key in the console, then copy your built files into the content folder shown in Overview with scp, rsync or an SFTP client. There is no browser uploader, so copy changed files the same way whenever the site changes.
Yes. The Caddyfile we manage turns gzip on, so every compressible response (HTML, CSS and JavaScript included) reaches visitors compressed without a line of config from you. Guides add it with an encode gzip line after installing Caddy. Here it is in place before your first file arrives.
Both serve a static site here from a content folder you fill over SSH, on HTTPS, with no website login. The difference is compression: the Caddy template sends your files gzip compressed. If your team already runs Nginx elsewhere, the Nginx template works the same way.
Yes. Caddy is open source under the Apache 2.0 license, so the web server costs nothing and the template adds no fee of its own. The only bill is the server it runs on, charged by the hour from prepaid credits; the cost table has the rates.
Yes. The site first answers on a generated HTTPS address. Once it is running, open the service's Settings, enter a domain you own and create the DNS record the console gives you. When that record resolves, your site answers on your domain over HTTPS, with the certificate handled by the platform.
Selfhost.dev is a managed self hosting platform for developers and small teams. Open source apps and databases on dedicated servers you control, billed by the hour, in six locations across three continents.
Best for: Static sites beside the apps behind them, the Nginx and WordPress templates and managed PostgreSQL, MySQL and Redis.