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
- Add the user to the
pages-approvedteam ofpages-sites. The team must have no repositories. - 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 - On the server, activate the hostname:
pages-host add NAME.malhaas.co.za - 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 - 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
- Take it offline, delete the content and block uploads:
Withoutpages-host remove NAME.malhaas.co.za --purge--purgethe content is kept on the server. - 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 - 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
- Delete or rename the
pages-sitesorganisation: whoever took the name could publish to every site. - Make the organisation public, or give a team access to all its repositories.
- Edit the generated Caddy and git-pages configuration by hand.