diff --git a/deploy/install.sh b/deploy/install.sh index 30a770e..80460b2 100644 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -19,8 +19,6 @@ install -m 0644 /usr/lib/syslinux/modules/bios/poweroff.c32 /srv/tftp/poweroff.c sed "s/@AGENT_TOKEN@/$(jq -r .agent_token /etc/rollcall/config.json)/g" pxelinux-default > /srv/tftp/pxelinux.cfg/default && chmod 0644 /srv/tftp/pxelinux.cfg/default [ -e /srv/tftp/rollcall ] || ln -s /srv/rollcall/image /srv/tftp/rollcall [ -d /srv/tftp/efi64 ] && ln -sfn ../rollcall /srv/tftp/efi64/rollcall -# old python prototype -rm -f /usr/local/bin/rollcall /usr/local/bin/commctl systemctl daemon-reload systemctl enable --now rollcall.service systemctl restart rollcall.service diff --git a/site/README.md b/site/README.md new file mode 100644 index 0000000..2463bde --- /dev/null +++ b/site/README.md @@ -0,0 +1,28 @@ +# Project website + +`index.html` is a self-contained static page (no build step). CI checks that it +parses; the `deploy` workflow publishes it when these repository variables are +set in Gitea (Settings → Actions → Variables): + +| Variable | Example | +|---|---| +| `SITE_HOST` | `10.0.0.11` | +| `SITE_USER` | `ilker` | +| `SITE_PATH` | `/var/www/rollcall.mynodes.xyz` | + +The SSH key comes from the `SITE_SSH_KEY` secret, falling back to `PXE_SSH_KEY`. +The target directory must be writable by `SITE_USER`. + +## Serving it with Caddy (host `web`) + +```caddyfile +rollcall.mynodes.xyz { + root * /var/www/rollcall.mynodes.xyz + file_server + encode zstd gzip + header Cache-Control "public, max-age=600" +} +``` + +Plus a DNS record `rollcall.mynodes.xyz CNAME ev.mynodes.xyz` (same as the +other sites on that host) and `sudo install -d -o ilker /var/www/rollcall.mynodes.xyz`.