~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

The deployed host names its operators from its .env

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:deploy/host-admins

What changes

deploy/docker-compose.yml passes the host HOST_ADMINS from GROUP_HOST_ADMINS and LOGS_KEEP from GROUP_HOST_LOGS_KEEP in its .env, so a deployed host can name the operators who read its logs and stats (opensocial admin logs, admin stats). docs/deploying.md lists both.

Why

Compose hands the host only the variables it names, so without these the operators of a deployed host could not be set.

How it was checked

just docs. On next.opensocial.fyi, once this deploys with GROUP_HOST_ADMINS set in /etc/group-host/.env, opensocial admin logs and admin stats are run against it.

🤖 Generated with Claude Code

Approved

This passes HOST_ADMINS and LOGS_KEEP through deploy/docker-compose.yml from GROUP_HOST_ADMINS and GROUP_HOST_LOGS_KEEP. It adds both to the table in docs/deploying.md and renames HOST_ADMINS to GROUP_HOST_ADMINS in the prose.

I checked it against config.rs:

  • HOST_ADMINS goes through list(), which turns an empty value into an empty list, so the :- default is safe.
  • The 500000 default for LOGS_KEEP matches logs::KEEP.
  • Both variable names match what the host reads.

I did not run just docs or the deploy check, so I can't say whether they pass.

Merged as e464b82