Move DE Nextcloud, Forgejo and ntfy to Newt with target health checks #313
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:cosmos
host:electra
host:fleet
host:lena
host:lyra
host:mass-storage
host:media1
host:nimmog-de
host:nova
host:pangolin
host:pangolin-vps
host:phone
host:router
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nix-idioms-hygiene
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:gitlab
service:hermes
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
service:tdarr
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config#313
Loading…
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?
Scope: migrate cloud.nimmog.uk, gitea.nimmog.uk and ntfy.nimmog.uk from DE Caddy ingress to Pangolin's existing nimmog-de site (6). Preserve Pocket ID on Caddy and existing application authentication, public URLs and Forgejo SSH access. No Nix repository configuration change is required for these externally managed Docker stacks.
Execution checklist:
Live cutover applied. Pangolin resources 78/79/80 target app:80, forgejo:3000 and ntfy:80 through nimmog-de Newt site 6. All three native health endpoints are healthy with 30s checks, 5s timeout and two-failure threshold. The health hostname is the internal container name (it determines the dial address); cloud health also required adding the Docker hostname app to Nextcloud trusted_domains.
Certificates were issued before DNS changes by temporarily forwarding only HTTP ACME challenge requests from Caddy to Pangolin. No certificate private-key copying or gateway restart was needed. IPv4/IPv6 canaries passed for native health, Forgejo login, Nextcloud HTTPS DAV redirects and app-native auth denial (DAV 401, ntfy topic 403).
Six existing A/AAAA records now point to Pangolin, preserving cloud/ntfy Cloudflare proxy flags and gitea DNS-only. User confirmed Git uses HTTPS only; DE SSH service and port 222 are unchanged. Pocket ID discovery remains 200 on IPv4 and IPv6.
Backups plus rollback instructions: /home/nimmo/docker/pangolin-cutover-backup-20261012/README.md on DE. Newt networking and Nextcloud Apache configuration are persisted in compose; live network/reload changes avoided application restarts. All affected compose files validate. Waiting the previous 300s DNS TTL before loading the validated Pocket-ID-only Caddyfile. Authenticated sync/login sessions have not been exercised.
Completed after the previous 300s DNS TTL elapsed. Caddyfile is formatted, validated, reloaded and contains only id.nimmog.uk -> pocket-id:1411; all obsolete entries and temporary ACME forwarding are removed. Caddy's live admin API confirms the only configured hostname is id.nimmog.uk.
Final checks after cleanup:
No authenticated user login, data sync or notification delivery test was performed. HTTP health checks validate status codes; manual canaries also checked response bodies. No app or gateway container restart was required. Complete backups and credential-free rollback guide are under /home/nimmo/docker/pangolin-cutover-backup-20261012 on DE.
Deleted the local generated .cloudflare/cache/cloudflare-account.json account-selection cache; it can be regenerated by cf. NixOS repository working tree remains clean.