Vigiar
1
0
Derivar
Você já tinha feito uma derivação do repositório templates, anteriormente
0
templates/static-site/README.md
2026-11-28 15:28:05 +02:00

883 B

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.