HotDIR (1997 version). HotDIR (H-DIR) was a DOS directory lister, a richer replacement for the DIR command that recognises file types, SFX programs and modules, Mac and Atari floppies, and the OS that formatted a disk. The site is its 1997 home page: feature list, screenshots, release history and downloads of versions 2.14 and 3.0 beta, plus a few other small productions.
Archive of an old static website, served as-is from bunny.net at the hostname
of site.json. Kept online for history, no longer developed.
Full list of the sites: https://chanoj.github.io/
scripts/seo.py writes robots.txt (allow everything, with the Sitemap: line) and sitemap.xml (indexable pages only) into site/; run python3 -I scripts/seo.py after any change of site/.
| Path | Content |
|---|---|
site/ |
The website files, exactly as served (imported from the storage zone) |
site.json |
The only site-specific settings: repository, storage zone, pull zone, hostname (plus zone ids, only until the first apply adopts them) |
infra/ |
OpenTofu: storage zone, pull zone, hostname (state encrypted, committed) |
infra/secrets.env |
Proton Pass references to the secrets (vault OldSites), no secret values |
scripts/deploy.py |
Sync site/ to the storage zone, purge the CDN |
scripts/smoke_test.py |
Check that the public site serves the files of site/ |
scripts/bootstrap.sh |
Set up a new repository of the same kind (see below) |
scripts/import_storage.py |
One-time download of the storage zone into site/ |
DNS is not managed here: the hostname is a CNAME to <pull zone>.b-cdn.net
at Infomaniak.
- Website: push a change under
site/tomain→ workflow Website: deploy uploads the changed files, deletes the removed ones, purges the CDN and runs the smoke test. A manual run allows a dry run. - Infra: pull requests touching
infra/show the plan; apply is a manual run of Infra: bunny.net (actionapply, frommain), which commits the encrypted state.
GitHub secrets: BUNNY_API_KEY (bunny.net account API key) and
TF_VAR_STATE_PASSPHRASE (state encryption), both from Proton Pass vault
OldSites. The storage zone password and pull zone id are looked up from the
API key, never stored.
Locally (Proton Pass CLI logged in):
pass-cli run --env-file infra/secrets.env -- python3 scripts/deploy.py --dry-runcd infra && pass-cli run --env-file secrets.env -- tofu planThe same files serve every old site of the bunny.net account; only site.json,
site/, the README title and the passphrase reference differ.
-
Copy the template into the new, empty repository folder (here
HotDIR97):cd ~/Code/OrangeJuice97 && git ls-files | grep -v -e '^site/' -e '^site.json$' -e '^infra/terraform.tfstate$' | rsync -a --files-from=- . ~/Code/HotDIR97/
-
Fill in the site-specific parts, download the files and check everything (plan, deployment dry run, smoke test):
cd ~/Code/HotDIR97 && git init -b main && scripts/bootstrap.sh init HotDIR97 chandra-sw chandra
-
Create the GitHub repository and its secrets, then push and run the Infra: bunny.net workflow with action
apply(adopts the existing resources into the state):scripts/bootstrap.sh github
-
Once the first apply has adopted the resources, rename the zones after the repository (bunny.net cannot rename: the zones are replaced, new ones first):
- at Infomaniak, point the CNAME of the hostname to
<repo, lowercase>.b-cdn.net(any*.b-cdn.netname reaches bunny.net, which routes by hostname, so this is safe before and after the switch); - one pull request that removes the ids from
site.jsonand setsstorage_zoneandpullzoneto the lowercase repository name; - after merge, run Infra: bunny.net with action
apply: it creates the new zones, moves the hostname, deletes the old zones, deployssite/to the new storage zone and runs the smoke test (a few minutes of errors at most, while the files are uploaded and the certificate issued).
- at Infomaniak, point the CNAME of the hostname to