gitoria
All repositories: gitoria
1.1 KB
#!/bin/sh# Start: the account `git` takes the owner of the repo folder (the app's user; files stay writable for both), the shared secret is# written where only `git` reads it, host keys live in /hostkeys (a volume: clients keep trusting the server).set -e[ -n "$GITORIA_SSH_SECRET" ] || { echo "GITORIA_SSH_SECRET is not set" >&2; exit 1; }uid=$(stat -c %u /repos); gid=$(stat -c %g /repos)grep -q "^git:" /etc/passwd || echo "git:x:$uid:$gid:git:/repos:/bin/sh" >> /etc/passwdecho "git:*:19000:0:99999:7:::" >> /etc/shadow[ -n "$(getent group "$gid")" ] || echo "gitgroup:x:$gid:" >> /etc/group( umask 077; printf '%s' "$GITORIA_SSH_SECRET" > /run/gitoria-secret ); chown "$uid:$gid" /run/gitoria-secret# sshd hands its commands an empty environment: what they need is written to filesprintf "%s" "${GITORIA_URL:-http://127.0.0.1:45004}" > /run/gitoria-urlmkdir -p /hostkeys[ -f /hostkeys/ssh_host_ed25519_key ] || ssh-keygen -q -t ed25519 -N '' -f /hostkeys/ssh_host_ed25519_key[ -f /hostkeys/ssh_host_rsa_key ] || ssh-keygen -q -t rsa -b 3072 -N '' -f /hostkeys/ssh_host_rsa_keygit config --system --add safe.directory '*'exec /usr/sbin/sshd -D -e -p "${GITORIA_SSH_PORT:-2222}"
Branches
- mainmain branch
Latest commits
- 09ce4f3fgitoria: mission 069 re-vendor hybriel 8efba065 stopped (big SSR pages grow + slow down); lambda audit clean; old vendor keptmre
- 3dc43108antcolony#40: mission references point to the moved missionsmre
- 8d9450fdantcolony#40: history (LOG.md), worker briefs (missions/) and reports moved here from antcolony, numbered per project; old numbers in antcolony docs/mission-map.mdmre
- 205d5fe4gitoria: Hybriel master ff51cf46; ssh keys/tokens no double rows (session sync); gates follow #20mre
- 9b27cb26gitoria#21: installable app (manifest, service worker, offline start page), own iconmre
- 68dcb603deploy.sh: back up live storage/.sessions/.env before every deploy (newest 5 kept)mre
- e2deed6dgitoria#20: "Add code" only on the Code page of an empty repository, no collapsiblemre
- 8bb97ffddeploy.sh: never send .git or .gitignore to Byrodinmre
- fd981932State of 2026-09-27; bin/ no longer tracked (Hybriel commit is in README)mre
- 4a2d7125initial commitmre