Everything on stpvm now reaches the Gitea LXC by its own name, GITEA_HOST (git.DOMAIN), pinned to its LAN IP: by extra_hosts in caddy, backend, usaco and silverbullet-git, and by /etc/hosts on the host for the runner, CI and Renovate. Public DNS for that name is Cloudflare, which only carries HTTPS, so the pin is what makes :3000 and :2222 work. The haproxy forwarder that kept localhost:3000/2222 working is gone, so stpvm no longer publishes those ports. The deploy and Renovate workflows and the runner script use the new name; the docs and the rollback notes follow. Co-Authored-By: Claude Opus 5.5 <[email protected]>
87 lines
4.1 KiB
Markdown
87 lines
4.1 KiB
Markdown
# .deprecated
|
|
|
|
STATUS: nothing in here is live. No compose file, Caddyfile or script
|
|
references this directory. It is kept, not deleted, in line with the repo's
|
|
"legacy is kept" convention; the full history is also in git.
|
|
|
|
## quartz/
|
|
|
|
The static-site build that used to serve `/notes/`. Replaced by the read-only
|
|
`silverbullet-public` service (PR #6). Its compose service and nginx route were
|
|
removed at that point; only the build context survives here.
|
|
|
|
## hasura/
|
|
|
|
Admin-only DB console that was proxied at `/hasura/`.
|
|
|
|
- `docker-compose.hasura.yml` — the service, verbatim.
|
|
- `nginx-locations.conf` — the upstream variable and `location` blocks that
|
|
were in both `nginx.conf.template` and `nginx_dev_common.conf.template`.
|
|
|
|
To bring it back: layer the compose file
|
|
(`docker compose -f docker-compose.yml -f .deprecated/hasura/docker-compose.hasura.yml up`),
|
|
paste the nginx blocks back into both templates, re-add `${HASURA_HOST}
|
|
${HASURA_PORT}` to `ENVSUBST_VARS` in `nginx/entrypoint.sh`, and set
|
|
`HASURA_HOST`, `HASURA_PORT` and `HASURA_GRAPHQL_ADMIN_SECRET` in `.env`. Dev
|
|
mode additionally set `HASURA_GRAPHQL_ENABLE_CONSOLE` and
|
|
`HASURA_GRAPHQL_DEV_MODE` to `"true"`.
|
|
|
|
## autoheal/
|
|
|
|
Watchdog that restarted any container docker marked `unhealthy` (only `backend`
|
|
and `python` define healthchecks). It mounts the docker socket, which is
|
|
effectively root on the host. To bring it back, layer
|
|
`docker-compose.autoheal.yml` the same way as above.
|
|
|
|
Since 2026-10-19 it is back in `docker-compose.yml`, watching only containers
|
|
labelled `autoheal=true` (caddy; nginx until 2026-11-17). This copy is the old
|
|
`all` variant, kept for reference.
|
|
|
|
## nginx/ and certbot/
|
|
|
|
The public edge until 2026-11-17, when Caddy (`caddy/`) replaced both:
|
|
`nginx/` is the image (three templates chosen at start by `entrypoint.sh`,
|
|
the shared route table, the payload log and security-header includes), and
|
|
`certbot/entrypoint.sh` obtained and renewed the certificate that nginx
|
|
reloaded through a sentinel file. Their compose services were removed in
|
|
`daa2a46`. The last certbot certificate is still in `./certbot/conf` on the
|
|
host, valid until 2027-01-20.
|
|
|
|
To bring them back: revert the commit that moved them here and then `daa2a46`;
|
|
DEPLOYMENT.md §7 ("Roll back to nginx") has the commands.
|
|
|
|
## gitea/
|
|
|
|
Gitea as it ran inside this stack on stpvm until 2026-11-24, when it moved to
|
|
its own Proxmox LXC (`stpgit`, run from the `adamf/stpgit` repo) and stpvm's
|
|
`gitea` service became a forwarder to it.
|
|
|
|
- `docker-compose.gitea.yml` — the old service, with its state mounts
|
|
repointed at this directory.
|
|
- `entrypoint.sh` — its app.ini-seeding wrapper, copied here when `gitea/`
|
|
moved to its own repo, so the rollback does not depend on that repo.
|
|
- `data/` and `config/app.ini` (gitignored, on stpvm only) — the pre-move
|
|
copy of the repositories and the live config, moved here from `gitea/`.
|
|
Gitea's pre-move database is still the `gitea` database in stpvm's `db`.
|
|
|
|
To bring it back on stpvm: stop Gitea on stpgit, copy anything pushed since
|
|
the move back (its `data/`, and a `pg_dump` of `gitea-db` restored into
|
|
`db`'s `gitea` database), then
|
|
`docker compose -f docker-compose.yml -f .deprecated/gitea/docker-compose.gitea.yml up -d gitea`.
|
|
The service still reads `POSTGRES_GITEA_DB` and the three `GITEA_*`
|
|
secrets from `.env`; stpvm's `.env` still has them, so keep them there until
|
|
this copy is deleted. Delete `data/`, `config/app.ini` and the old database once the LXC has run
|
|
cleanly for a few weeks (from about 2026-12-08).
|
|
|
|
Since later on 2026-11-24 the stack has no `gitea` service at all (the
|
|
forwarder is gone) and Gitea's address is `git.<DOMAIN>`, so a rollback
|
|
also needs: `GITEA_HOST=gitea` in stpvm's `.env` (the containers'
|
|
`extra_hosts` pin then becomes harmless), the `/gitea/` proxy route back in
|
|
`caddy/routes.caddy` (revert `180f6ac`), `ROOT_URL` back to
|
|
`https://<DOMAIN>/gitea/` in `config/app.ini` here, and the CI remotes,
|
|
`.runner`'s address and Renovate's endpoint back to `localhost`.
|
|
|
|
The laptop's own leftovers (an old dev `gitea/data` and `app.ini`, and a
|
|
stale `gitea-runner/.runner`) are under `dev-leftovers/` here, also
|
|
gitignored, and can simply be deleted.
|