Self-host on Argus at policai.org - #72
Merged
Merged
Conversation
Phase 1 only: serve the register from Argus at policai.org and retire the Vercel deployment. Records the live recon it is based on, and carries the Phase 2 findings forward so the collector work starts from evidence. Filed under docs/ rather than docs/superpowers/, which this repo ignores. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The site moves from Vercel to the Argus server, served by `next start` behind a dedicated Cloudflare tunnel. - Replace the four `policai.com.au` references with `policai.org`. That domain was never live. One of them is the collector's User-Agent, which is how it identifies itself to the government sites it fetches, so the URL in it should resolve. - Redirect `www.policai.org` to the apex in `next.config.ts`. The tunnel answers for both hostnames, so the canonical choice belongs in the repository rather than in a Cloudflare rule nobody can see from the code. - Update AGENTS.md, README.md and docs/collector.md, which described Vercel and a redeploy-on-push model that no longer applies. Data commits are now picked up by ISR without a rebuild. Gate: lint, typecheck, 413 tests, build. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves hosting from Vercel to the Argus server, served at policai.org behind a dedicated Cloudflare tunnel.
Design:
docs/hosting-argus.md, added in the first commit.Why the domain changes
policai.com.auappeared in four places and is not a live domain. One of them is the collector'sUser-Agent, which is how it identifies itself to the government sites it fetches — that URL should resolve.www.policai.orgredirects to the apex innext.config.tsrather than as a Cloudflare rule. The tunnel answers for both hostnames, and keeping the canonical choice in the repository means it is reviewable, testable, and survives a move between hosts.Already running on Argus
Both units are up and enabled, bound to loopback, with no public change yet — policai.org still resolves to its placeholder origin.
Verified over SSH: homepage 200 in 19 ms,
/policies/<id>200,/api/policiesreturning JSON.The
policaitunnel was created through the Cloudflare API rather thancloudflared tunnel login, because that command would have overwritten thecert.pemthe livedesk-webapptunnel depends on.cert.pemis untouched and both tideflow tunnels still report 4 healthy connections.Docs
AGENTS.md,README.mdanddocs/collector.mddescribed Vercel and a redeploy-on-push model. Data commits are now picked up by ISR within the hour without a rebuild, becausedata-servicereads its JSON from disk at request time.Still to come, after this merges
Replacing the GitHub Actions collector with a scheduled run on Argus is deliberately a separate phase.
Verification
npm run check— lint, typecheck, 413 tests, build.🤖 Generated with Claude Code