6.8 KiB
6.8 KiB
Production VPS & Git Operator Deployment Guide (v1.0.0)
- Document ID:
VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE(v1.0.0) - Authoritative Scope: Public HTTP/SSH Repository Sync on
git.libre.audio+ Per-Repository Install Directory Routing on a Linode / Akamai Connected Cloud VPS (https://hyperstitionstud.io) - Historical Design Records: Archived under
docs/archive/(PLAN-*.{md,pdf})
1. Master 1-to-1 Mapping: git.libre.audio Repository -> VPS Install Dir -> Web Route
Each sibling repository maps to a dedicated repository under seasharp on git.libre.audio, a dedicated clone directory under /srv/hyperstitionstud.io/repos/ (mirrored to RAM at /var/www/hyperstitionstud.io/repos/), and a direct Caddy route on https://hyperstitionstud.io:
| # | Repository Slug (seasharp/<repo>) |
Public HTTPS Clone URL (VPS & New Users) | VPS Install Dir (/srv/hyperstitionstud.io/repos/*) |
Direct Web Route(s) on https://hyperstitionstud.io |
|---|---|---|---|---|
| 1 | hyperstitionstudio-core (v1.2.0) |
https://git.libre.audio/seasharp/hyperstitionstudio-core.git |
/srv/hyperstitionstud.io/repos/hyperstitionstudio-core |
• / (site/index.html Portal Homepage)• /schemas/* (schemas/v1/*.schema.json) |
| 2 | ingglish-hyperdope-gematria (main) |
https://git.libre.audio/seasharp/ingglish-hyperdope-gematria.git |
/srv/hyperstitionstud.io/repos/ingglish-hyperdope-gematria |
• /archive/* (ingglish-aq-archive/) |
| 3 | technocapital-singularity-zoology (v1.7.0) |
https://git.libre.audio/seasharp/technocapital-singularity-zoology.git |
/srv/hyperstitionstud.io/repos/technocapital-singularity-zoology |
• /encyclopedia/* (encyclopedia/)• /technocapital-singularity-zoology/* (sibling PDF link target)• /zoology/* (root reports, tier list, glossary, dossiers/) |
| 4 | encyclopedia-knowledge-graph (v1.0.0) |
https://git.libre.audio/seasharp/encyclopedia-knowledge-graph.git |
/srv/hyperstitionstud.io/repos/encyclopedia-knowledge-graph |
• /graph/* (index.html, graph-data.js, atlas-mode*.png, .json, .graphml, .gexf, .canvas) |
| 5 | ingglish-hyperdope-ci (feat/ingglish-aq-corpus) |
https://git.libre.audio/seasharp/ingglish-hyperdope-ci.git |
/srv/hyperstitionstud.io/repos/ingglish-hyperdope-ci |
• /calc/* (index.html, calc/*.js, db.json) |
2. Git Operator Workflow: Pushing Clean Updates to git.libre.audio
# 1. Run pre-push verification gates
hs-doctor
python3 hyperstitionstudio-core/tests/test_core_suite.py
python3 encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py --verify-only
# 2. Push all 5 repositories in topological dependency order
FORGE_SSH="ssh://git@git.libre.audio:2222/seasharp"
./hyperstitionstudio-core/push-to-origin.sh "${FORGE_SSH}/hyperstitionstudio-core.git"
git -C ./ingglish-hyperdope-gematria push -u origin main
git -C ./technocapital-singularity-zoology push -u origin main && git -C ./technocapital-singularity-zoology push origin --tags
./encyclopedia-knowledge-graph/push-to-origin.sh "${FORGE_SSH}/encyclopedia-knowledge-graph.git"
git -C ./hyperdope-ci-build push -u origin feat/ingglish-aq-corpus
3. Linode / Akamai VPS Setup: RAM-Backed tmpfs + TCP BBR + Caddy HTTP/3 (QUIC)
3.1 Provisioning, DNS & Kernel Tuning
- Instance: Linode Dedicated 4 GB or Shared 2 GB / 4 GB (Debian 12 Bookworm or Ubuntu 24.04 LTS,
us-iadorus-east). - Cloud Firewall: Allow inbound
TCP 443,UDP 443(HTTP/3 QUIC),TCP 80, and restrictedTCP 22. - DNS Records (
hyperstitionstud.io):A/AAAA(@andwww),CAA(0 issue "letsencrypt.org"), andHTTPS(1 . alpn="h3,h2"). - RAM Mount (
/etc/fstab):tmpfs /var/www/hyperstitionstud.io/repos tmpfs defaults,size=256M,mode=0755 0 0 - Kernel Sysctl (
/etc/sysctl.d/99-hyperstition-fastnet.conf):net.core.default_qdisc = fq,net.ipv4.tcp_congestion_control = bbr,net.ipv4.tcp_fastopen = 3,net.core.rmem_max = 16777216,net.core.wmem_max = 16777216.
3.2 Initial VPS Per-Repo Clone (/srv/hyperstitionstud.io/repos/)
sudo mkdir -p /srv/hyperstitionstud.io/repos /var/www/hyperstitionstud.io/repos
sudo chown -R "$USER:$USER" /srv/hyperstitionstud.io
cd /srv/hyperstitionstud.io/repos
FORGE_HTTPS="https://git.libre.audio/seasharp"
git clone "${FORGE_HTTPS}/hyperstitionstudio-core.git"
git clone "${FORGE_HTTPS}/ingglish-hyperdope-gematria.git"
git clone "${FORGE_HTTPS}/technocapital-singularity-zoology.git"
git clone "${FORGE_HTTPS}/encyclopedia-knowledge-graph.git"
git clone -b feat/ingglish-aq-corpus "${FORGE_HTTPS}/ingglish-hyperdope-ci.git"
cp hyperstitionstudio-core/workspace.example.toml ./workspace.toml
python3 -m venv .venv
.venv/bin/pip install --upgrade pip
.venv/bin/pip install -r hyperstitionstudio-core/requirements.txt
.venv/bin/pip install --no-deps -e ./hyperstitionstudio-core
.venv/bin/hs-doctor
3.3 Caddy 2 Configuration (/etc/caddy/Caddyfile)
{
servers {
protocols h1 h2 h3
}
}
www.hyperstitionstud.io {
redir https://hyperstitionstud.io{uri} permanent
}
hyperstitionstud.io {
encode zstd gzip
header {
Alt-Svc "h3=\":443\"; ma=2592000"
Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
X-Content-Type-Options "nosniff"
Referrer-Policy "strict-origin-when-cross-origin"
-Server
}
handle_path /graph/* {
root * /var/www/hyperstitionstud.io/repos/encyclopedia-knowledge-graph
file_server { precompressed br gzip }
}
redir /graph /graph/ permanent
handle_path /encyclopedia/* {
root * /var/www/hyperstitionstud.io/repos/technocapital-singularity-zoology/encyclopedia
file_server { precompressed br gzip }
}
handle_path /technocapital-singularity-zoology/* {
root * /var/www/hyperstitionstud.io/repos/technocapital-singularity-zoology
file_server { precompressed br gzip }
}
handle_path /zoology/* {
root * /var/www/hyperstitionstud.io/repos/technocapital-singularity-zoology
file_server { precompressed br gzip }
}
handle_path /archive/* {
root * /var/www/hyperstitionstud.io/repos/ingglish-hyperdope-gematria/ingglish-aq-archive
file_server { precompressed br gzip }
}
handle_path /calc/* {
root * /var/www/hyperstitionstud.io/repos/ingglish-hyperdope-ci
file_server { precompressed br gzip }
}
redir /calc /calc/ permanent
handle_path /schemas/* {
root * /var/www/hyperstitionstud.io/repos/hyperstitionstudio-core/schemas
file_server { precompressed br gzip }
}
handle {
root * /var/www/hyperstitionstud.io/repos/hyperstitionstudio-core/site
file_server { precompressed br gzip }
}
}