templates/static-site
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-28 15:28:05 +02:00
..
public Initial release (1.0.0) 2026-11-28 15:28:05 +02:00
.env.example Initial release (1.0.0) 2026-11-28 15:28:05 +02:00
Caddyfile Initial release (1.0.0) 2026-11-28 15:28:05 +02:00
docker-compose.yml Initial release (1.0.0) 2026-11-28 15:28:05 +02:00
README-pt.md Initial release (1.0.0) 2026-11-28 15:28:05 +02:00
README.md Initial release (1.0.0) 2026-11-28 15:28:05 +02:00

Static site

Português

HTML and CSS files in public/, served by Caddy with HTTPS, compression and a 404 page.

Files

  • public/: your site. Replace index.html, 404.html and style.css with your own.
  • Caddyfile: serves public/ for DOMAIN and sends www. to the domain without www.
  • docker-compose.yml: one Caddy container on ports 80 and 443.
  • .env.example: copy it to .env and set DOMAIN.

Try it on your computer

cp .env.example .env    # then set DOMAIN=localhost
docker compose up -d

Open https://localhost (the browser warns about the local certificate).

Publish on your VPS

From the templates folder: sh deploy.sh static-site root@<server ip>. See the main README for the IP and the DNS records.

To change the site, edit public/ and run the same command again. No restart is needed.