| Nome do ficheiro | Mensagem do último commit | Data do último commit |
|---|---|---|
| .. | ||
| public | ||
| .env.example | ||
| Caddyfile | ||
| docker-compose.yml | ||
| README-pt.md | ||
| README.md | ||
Static site
HTML and CSS files in public/, served by Caddy with HTTPS, compression and a 404 page.
Files
public/: your site. Replaceindex.html,404.htmlandstyle.csswith your own.Caddyfile: servespublic/forDOMAINand sendswww.to the domain without www.docker-compose.yml: one Caddy container on ports 80 and 443..env.example: copy it to.envand setDOMAIN.
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.