malhaas pages

Administration

For administrators. Run pages_admin.py from the admin tools, and pages-host with sudo on the Pages server. There, pages-site add USER NAME --apply and pages-site remove NAME --apply do the steps below in one go.

Requests

Requests are issues in pages-sites/www, titled Page request: NAME. A request approves nothing. Read what it would publish, decide public or login, do the steps below, then comment and close it.

Agents use the pages-request skill (skill/SKILL.md in that repository). Nobody is notified beyond Forgejo's own notifications.

Add a site

  1. Add the user to the pages-approved team of pages-sites. The team must have no repositories.
  2. Show the plan, then apply it. This creates the repository from the template and gives the user write access:
    tools/pages_admin.py approve-site USER NAME
    tools/pages_admin.py approve-site USER NAME --apply
  3. On the server, activate the hostname:
    pages-host add NAME.malhaas.co.za
  4. If readers must log in, set it before the first upload. The password is read from standard input, 12 characters or more:
    pages-host auth NAME.malhaas.co.za USER
    pages-host auth NAME.malhaas.co.za --off
  5. Tell the user to push. The site appears after the first successful build.

Builds run on the organisation's shared runner, so there is nothing to set up per site. Everyone with write access to a repository in pages-sites can run builds.

Remove a site

  1. Take it offline, delete the content and block uploads:
    pages-host remove NAME.malhaas.co.za --purge
    Without --purge the content is kept on the server.
  2. Release the name. This removes access, archives the repository and puts the name on hold:
    tools/pages_admin.py release-site NAME
    tools/pages_admin.py release-site NAME --apply
  3. Check the repository for leftover webhooks and secrets.

Disabling or deleting a user does not take their sites offline. Remove the sites too.

Reserved names

Reserved names are refused. For an operator's own site, add --official to approve-site.

Change the template

New sites are generated from pages-sites/site-template. Existing sites do not pick up changes.

Check the server

pages-host list
rc-status default
tail /var/log/caddy/caddy.log /var/log/git-pages/git-pages.log /var/log/page-runner/daemon.log

Do not