Commit graph

8 commits

Author SHA1 Message Date
df176d2e4f [004] Add ntfy stack behind Caddy at push.waldson.com.br 2026-07-23 14:49:24 -03:00
2d370dc4ae Merge branch 003-forgejo-stack-behind-caddy-ssh-2222 2026-07-23 14:04:58 -03:00
08c1012e60 [003] Add Forgejo stack behind Caddy at git.waldson.com.br
Run a single-user, self-hosted git server on the droplet. New forgejo/ compose
stack on proxy_net: git-over-SSH is published on host 2222 (container sshd on 22)
so the host's admin sshd keeps port 22, while the web UI (3000) is unpublished
and reached only through the central Caddy, which gains a git.waldson.com.br
reverse-proxy block. SQLite backs the instance and all state - repos, database,
generated app.ini, SSH host keys - lives in the forgejo_data volume, so a
force-recreate preserves every user and repository.

The full configuration is injected via FORGEJO__ environment variables and
written into app.ini on startup: registration disabled, Forgejo Actions
disabled, and DOMAIN/SSH_DOMAIN/SSH_PORT set so clone URLs carry the right host
and port. INSTALL_LOCK skips the web installer, so the single admin is created
from the CLI; the security posture survives recreation instead of depending on
installer clicks. README documents the deploy, admin-creation, SSH-config, and
upgrade runbook.
2026-07-23 13:48:44 -03:00
ac61d310fa Merge branch 002-syncthing-stack-behind-caddy 2026-07-23 13:40:01 -03:00
217efdace1 [002] Add Syncthing stack behind Caddy at sync.waldson.com.br
Run an always-on Syncthing peer on the droplet as an off-site copy for the
owner's folders. New syncthing/ compose stack on proxy_net: the sync protocol
is published on host 22000 (tcp+udp) for direct device connections, while the
GUI (8384) is unpublished and reached only through the central Caddy, which
gains a sync.waldson.com.br reverse-proxy block. Config and folder data live on
a host bind mount for SSH inspection and are git-ignored. README documents the
deploy, upgrade, and interactive pairing runbook.

Binding the GUI to a non-loopback address (STGUIADDRESS) also disables
Syncthing's DNS-rebinding host check, so the proxy needs no Host rewrite.
2026-07-23 13:34:10 -03:00
657288bd86 Merge branch 001-droplet-groundwork-swap-firewall-dns 2026-07-23 13:26:46 -03:00
05001b9c89 [001] Document droplet groundwork: swap, firewall, DNS 2026-07-23 13:21:24 -03:00
438573ea7b Version-control the shared Caddy edge proxy
The droplet's single Caddy container terminates TLS for every site and routes
each host to its upstream over proxy_net. Until now its only copy lived on the
server; capture compose.yaml and the Caddyfile here, with a README covering how
to add a site and reload without downtime. ACME material is git-ignored.
2026-07-23 12:13:20 -03:00