coa: Ansible role for coa.<domain> — checkout-backed server + site, Caddy, Stalwart SMTP (coa phase-2 Task 11) #3
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/matou-distributed-servers#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Plan
Matou/coadocs/superpowers/plans/2026-08-28-coa-phase-2.mdTask 11 (full role text: defaults, tasks, Dockerfile, compose, Caddy snippet). Decision: coa ADR 0003.Deliverable
roles/coa/mirroringmatou_forms: cloneMatou/coa(coa_git_ref, defaultmain) to/opt/coa/srcas usercoa(uid 1000); git identitycoa-server <notify@mail.matou.nz>+credential.helper store --file /opt/coa/git-credentials(vaultcoa_forgejo_push_token); Docker (node:22 + git, host network, loopback8097) with the checkout bind-mounted, entrypointpnpm install --frozen-lockfile && build && start; envCOA_PUBLIC_URL=https://coa.<domain>,COA_COMMUNITIES_DIR,COA_REPO_DIR,COA_GIT_PUSH=1,SMTP_*from the Stalwartnotifyaccount (stalwart_mesh_ip:587,servername mail.<domain>).conf.d/coa.caddy:/api/*→:8097;handle_path /c/*→communities/withrewrite ^/<slug>/?$ → /<slug>/index.html; elsesite/distSPA.playbooks/host.ymlaftermatou_formsgated oncoa_enabled;host_vars/matou.ymlcoa_enabled: true; CHANGELOG line.Acceptance
make host LIMIT=matou --check --diff -t coaclean.coa_port > 1024.0600.depends_on
out_of_scope
Running it for real (Matou/coa #39); DNS (wildcard covers
coa.<domain>).Credentials from coa#38 are in place. Wire the role to: vault
coa_forgejo_deploy_key(ed25519 private key — NOT a token; mount as an SSH key), remotessh://git@elitebook-distributed-server-01.netbird.selfhosted:2222/Matou/coa.git(git SSH is mesh-only on :2222),COA_GIT_PUSH=1, commit identitycoa-server <notify@mail.matou.nz>, SMTP viastalwart_notify_app_passwordasnotify@mail.matou.nz(same host/port/TLS-servername pattern asmatou_forms). Proof push: Matou/coa aa754d1.