Move DE Nextcloud, Forgejo and ntfy to Newt with target health checks #313

Closed
opened 2026-10-12 00:01:38 +01:00 by nimmo · 2 comments
Owner

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:

  • Back up compose files, Nextcloud proxy settings, Caddyfile and DNS records.
  • Persist Newt access to the existing application bridge and test backend endpoints from Newt.
  • Preserve Nextcloud HTTPS DAV discovery and trusted proxy handling.
  • Create HTTPS Pangolin resources and HTTP targets with GET checks: /status.php, /api/healthz, /v1/health; 30s interval, 5s timeout, two failed checks before exclusion.
  • Canary through Pangolin on IPv4/IPv6 before changing DNS; verify redirects, app-native authentication and Pocket ID.
  • Repoint A/AAAA records while preserving Cloudflare proxy flags.
  • After cache expiry, reduce Caddyfile to Pocket ID, validate and reload.
  • Confirm resources healthy, external endpoints work and a no-op follow-up matches expected configuration. Record rollback instructions and evidence before closure.
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: - Back up compose files, Nextcloud proxy settings, Caddyfile and DNS records. - Persist Newt access to the existing application bridge and test backend endpoints from Newt. - Preserve Nextcloud HTTPS DAV discovery and trusted proxy handling. - Create HTTPS Pangolin resources and HTTP targets with GET checks: /status.php, /api/healthz, /v1/health; 30s interval, 5s timeout, two failed checks before exclusion. - Canary through Pangolin on IPv4/IPv6 before changing DNS; verify redirects, app-native authentication and Pocket ID. - Repoint A/AAAA records while preserving Cloudflare proxy flags. - After cache expiry, reduce Caddyfile to Pocket ID, validate and reload. - Confirm resources healthy, external endpoints work and a no-op follow-up matches expected configuration. Record rollback instructions and evidence before closure.
Author
Owner

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.

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.
Author
Owner

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:

  • cloud/gitea/ntfy native health endpoints pass on public IPv4 and IPv6; Pangolin resources 78/79/80 and target health checks are healthy.
  • Both Nextcloud DAV discovery URLs redirect to HTTPS /remote.php/dav/; unauthenticated DAV remains 401.
  • Forgejo login page returns 200; its database/cache health check passes.
  • ntfy reports healthy and denies unauthenticated topic access (403).
  • Pocket ID discovery returns 200 on IPv4 and IPv6. One transient DNS lookup timed out; retry and direct-origin IPv4 both passed.
  • Existing DE Newt services btor and notes2 remain 200.
  • Newt retains its original network and has persistent static 172.24.0.8 on caddy_default. Nextcloud Apache source matches live config; all affected compose files validate. No-op follow-up required no further edits.

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.

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: - cloud/gitea/ntfy native health endpoints pass on public IPv4 and IPv6; Pangolin resources 78/79/80 and target health checks are healthy. - Both Nextcloud DAV discovery URLs redirect to HTTPS /remote.php/dav/; unauthenticated DAV remains 401. - Forgejo login page returns 200; its database/cache health check passes. - ntfy reports healthy and denies unauthenticated topic access (403). - Pocket ID discovery returns 200 on IPv4 and IPv6. One transient DNS lookup timed out; retry and direct-origin IPv4 both passed. - Existing DE Newt services btor and notes2 remain 200. - Newt retains its original network and has persistent static 172.24.0.8 on caddy_default. Nextcloud Apache source matches live config; all affected compose files validate. No-op follow-up required no further edits. 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.
nimmo closed this issue 2026-10-12 00:13:37 +01:00
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/nixos-config#313
No description provided.